During everyday JavaScript coding, it may be hard to see how the equality operator works. Especially when the operands have different types. Time to time this creates bugs in conditionals, which are difficult to identify. It is easy to understand why 0 == 8 is false or ‘’ == false is true. But why {} == true is false is not obviously to see. If you’re interested:

to know better the equality and identity operators
to learn the formal computation algorithm
to practice a plenty of examples
then make yourself comfortable and let’s begin.

#javascript #equality #operator #programming

The Legend of JavaScript Equality Operator
1.05 GEEK