This is why you should always use === and !==.
===
!==
Image Source: https://dorey.github.io/JavaScript-Equality-Table/