JavaScript Notes and Examples

JS at-a-glance

JavaScript from 10 km at mach 1.

0, NaN, "" (empty string), and false are all falsey. Everything else is truthy.

The logical and conditional/ternary operators both short-cicuit, as expected.

The collection of all current bindings is called “the environment”.