Operators

From rbachwiki
Revision as of 16:10, 2 December 2016 by Bacchas (talk | contribs) (Created page with "==Spread Operator == ''' Expands elements of an array ''' function addFourAges(a,b,c,d){ return a+b+c+d; }; var sum1 = addFourAges(18,19,20,21); ==Back To Top-[...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Spread Operator

Expands elements of an array

function addFourAges(a,b,c,d){
return a+b+c+d;
};
var sum1 = addFourAges(18,19,20,21);


Back To Top- Home - Category