Equality and Truthy Values

JavaScript has a loose == that converts types before comparing and a strict === that doesn't, and it treats every value as truthy or falsy in a condition, so you learn which to use and where 0 and empty text trip people up.

Updated

Cheat sheet: Equality and Truthy Values
Category
JavaScript
Level
Apprentice
Tags
Falsy (javascript), JavaScript, Loose Equality (==) (javascript), NaN (javascript), Strict Equality (===) (javascript), Truthy (javascript), Type Coercion (javascript)