Understanding equality in JavaScript
Briefly

We have all been there...You compare two values using ==, receive a totally unexpected result and wonder WT* is going on?! - Just Equality == operator at its finest.Equality == operator has the following syntax.Always use Strict Equality === operator.There is literally no benefit in using == instead of ===, except if your goal is to introduce bugs to your codebase.
Read at DEV Community
[
|
]