Check out a free preview of the full Coercion in JavaScript course:
The "Explicit Coercion: Booleans" Lesson is part of the full, Coercion in JavaScript course featured in this preview video. Here's what you'd learn in this lesson:
While using the Boolean() native function is Kyle’s preference, many developers will use a double negate (!!) to perform Boolean coercion. Kyle explains how this works and demonstrates a few other types of explicit coercion.