This is why you should always use === and !==.
===
!==
Source: https://dorey.github.io/JavaScript-Equality-Table/
There was an error while loading. Please reload this page.
New to Free Code Camp?
JS Concepts
JS Language Reference
Other Links