This course has been updated! We now recommend you take the Deep JavaScript Foundations, v3 course.

Check out a free preview of the full Coercion in JavaScript course:
The "ToBoolean" Lesson is part of the full, Coercion in JavaScript course featured in this preview video. Here's what you'd learn in this lesson:

When determining if something is false, the ToBoolean function references a list of “falsy” values. If the object in question is on that list, the result is false. If it isn’t on the list, the result is true. K

Get Unlimited Access Now