Skip to content

Glossary: JavaScript Beyond the Basics

Falsy

Also written: truthy

Values that count as false in a condition, including `0`, `""`, `false`, `null` and `undefined`. `||` replaces all of them with a default, which is why `??` is usually better for defaults.

Where the book teaches it

Related terms

?? (nullish coalescing)