Destructuring assignment with function arguments JavaScript
by Mohan[ Edit ] 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
________________________________________