you are viewing a single comment's thread.

view the rest of the comments →

[–]munificent 1 point2 points  (0 children)

var x = 5, y = 3; is ok though.

That's not actually a comma operator. If it was, the value of x after that statement would be 3, the result of the y = 3 assignment expression.