Dec 10, 2017

JavaScript == vs. ===

== checks for equality with coercion and === checks for equality without coercion — strict equality.

2 == '2'            // True
2 === '2'           // False
undefined == null   // True
undefined === null  // False