Add new comment

#5 Operator Equals - Lessons Learned While Reading "Effective Javascript"

In Javascript you have two equals operators: implicit coercion equals operator (==) and strict equality operator (===). The former will try to coerce different types and attempt equality checks, while the latter will only operate without any conversions.

Because of these properties, the "===" operator is prefered, as it's explicit nature yields less potentially tricky (buggy) code due to non-obvious conversions. (and helps with code readability)