I why does the console in Chrome and Firefox evaluate the current to 1
:
> {a:1}
1
I would guess that it would be evaluated as an object like if you assign it to a variable:
> var a = {a:1}
undefined
> a
Object {a: 1}
And with quotes it throws an syntax error:
> {"a":1}
SyntaxError: Unexpected token :