Dennis Hackethal’s Blog
My blog about philosophy, coding, and anything else that interests me.
Tweet
This mirrored tweet of mine may be formatted slightly differently than on Twitter.
This is an older tweet. I don’t necessarily endorse it anymore.
Dennis Hackethal
It's because the interpreter/compiler (depending on your JS implementation) reads { foo, bar } as shorthand and expands it to { foo: foo, bar: bar }. It's a shorthand for object notation. Its introduction was pretty recent as I recall.
What people are saying
Below comments were posted on this blog, not on Twitter.