When I type simple objects to Chrome JavaScript Console, I get an output like this:
>true true >1/3 0.3333333333333333
And so on.
{ a: 1, b: 2 }
is a code block, with two wrongly labelled variables.
To create an object, surround the code block by parentheses, so that the braces are interpreted as object literals:
({ a: 1, b: 2 })