Coercion in JavaScript

Coercion in JavaScript

Kyle Simpson
Kyle Simpson
You Don't Know JS
3 hours, 1 minutes

Become a Master

This course and others like it are available as part of our Frontend Masters video subscription.

Watch Free Preview Join Frontend Masters
Most people will cite coercion and the == operator as the black magic that should never show up in your programs. Not only is coercion much easier to learn and properly apply than you've believed, but avoiding it is missing out on important clarifications in style and readability of your code.
Published: August 19, 2015

Table of Contents

Primitive Types


Implicit vs. Explicit Coercion