I don't understand why the following evaluates to 3 instead of just declaring a syntax error when ran from a JavaScript REPL or through Chrome's Developer Tools:
{1, 2, 3};
3
As far as I can see, that should be a syntax error as demonstrated with:
var foo = {1, 2, 3};
Uncaught SyntaxError: Unexpected token ,
I feel like there's just some quirky behaviour I'm not aware of?