1

I observed the following behaviour in both Firefox Console and Node and can't think of an explanation. Can you explain why this happens? I actually expected a syntax error. Same behaviour occurs with strings or arrays.

> 3,2,1
1

> "abc", "bca", "cba"
'cba'

> [1], [2], [3]
[ 3 ]
sedot
  • 577
  • 5
  • 16

0 Answers0