JavaScript - The comma operator

javascript

// JavaScript - The comma operator:

The comma operator evaluates each of its operands (from left to right) and 
returns the value of the last operand.
var a = (2, 3, 5); // The value of a is 5
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License