8 ms·
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 fo
by Rompect 5y 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.
- rudian 5y agoIn JavaScript statements don’t have to do anything. "hi"; 1; true; new Date(); () => {}; This is valid JavaScript