The following code produces a syntax error in Chrome and Firefox, but not Node.js:
{"hello": 1} However, the following code works everywhere:
var x = {"hello": 1} Also, the following works everywhere:
{hello: 1} What is the explanation for this strange behavior?