|
|
|
|
|
by esrauch
2244 days ago
|
|
It's just ASI (automatic semicolon insertion) and at the top-level {} declares a block not an object. You can also do like ({} + []) and it will actually be "adding" them; the confusion solely comes from people typing into the JS console something that wouldn't make any sense to put into an actual script. |
|