Table of Contents

Javascript - Coercion

About

Data Type - Coercion (ie Type Conversion) in Javascript

Policy: Make the conversions explicit and use the strict equality operator.

Truthiness

Operators such as if, ||, and && accept any values thanks to the Truthiness/Falsiness coercion. See Javascript - Boolean (Truthy|Falsy)