JavaScript Notes and Examples
←prev

Weirdness

Numerous typing quirks. Ex.:

(See more examples.)

Automatic semicolon insertion…

Older function scoping (var), vs. more customary block-scoping (let, const).

Distinction between expressions and statements…

Fun stuff: