Coercion in JavaScript

Coercion in JavaScript

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

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.

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

Published: August 19, 2015
Get Unlimited Access Now

Table of Contents

Primitive Types


Implicit vs. Explicit Coercion