top | item 27928824 (no title) Rompect | 4 years 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. discuss order hn newest rudian|4 years ago In JavaScript statements don’t have to do anything."hi"; 1; true; new Date(); () => {};This is valid JavaScript
rudian|4 years ago In JavaScript statements don’t have to do anything."hi"; 1; true; new Date(); () => {};This is valid JavaScript
rudian|4 years ago
"hi"; 1; true; new Date(); () => {};
This is valid JavaScript