Today I Learned - Rocky Kev

Tagged “tricky”

  1. TIL JS commas evaluate operands

    The comma operator evaluates each of its operands (from left to right) and returns the value of the last operand. var a=(2,3,4,5,6,7), result is 7.

See all tags.