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

As Kyle mentioned earlier, using a double-equal operator in a Boolean comparison can lead to issues. In some cases a Boolean conversion will occur. In other cases it will not. These inconsistencies are why Kyle recommends avoiding this usage.

Get Unlimited Access Now