In the console,
{1:'b',2:'x'}
produces the error "SyntaxError: missing ; before statement"; whereas putting a variable in front,
z={1:'b',2:'x'}
provides the correct answer.
This impacts when you copy a brace set and paste below to view its contents as a whole.
Cheers,
David