The Comma Operator
Last updated
Was this helpful?
Last updated
Was this helpful?
I was surprised to see the result of this line of code:
I asked around on and learned that the syntax construct at play here is the .
The comma operator evaluates each of its operands (from left to right) and returns the value of the last operand.
And that is why what
gets bound to 4
.