Destructuring assignment with function arguments JavaScript

by Mohan 2012-09-20 23:37:20



Destructuring assignment with function arguments
JavaScript 1.7
function foo( [a,b] ) {

Print(a);
Print(b);
}

foo( [12,34] );
Prints:
12
34
________________________________________



539
like
0
dislike
0
mail
flag

You must LOGIN to add comments