Hacker News new | ask | show | jobs
by Rompect 1789 days ago
I'm more baffled that

    foo: "bar";
is a valid expression. I know, it's the named statement syntax normally used for loops, but I didn't know this worked for any expression.
1 comments

In JavaScript statements don’t have to do anything.

"hi"; 1; true; new Date(); () => {};

This is valid JavaScript