DEV Community

Discussion on: javascript return?

Collapse
 
stereobooster profile image
stereobooster

The comma operator (,) evaluates each of its operands (from left to right) and returns the value of the last operand.

developer.mozilla.org/en-US/docs/W...

Collapse
 
johndoesup profile image
abhishek

Thank you. I actually got confused on left to right and right to left evaluate thing.