Strict Equality (==) Loose Equality (===) in JavaScript
JavaScript has two operators for checking equality. One is == (equality operator or loose equality operator) and the other one is === (strict equality operator). Both of these operators check the value of operands for equality. But, the difference between == & === is that the == does a type conversion before checking for equality. Similarly, we have two, not equal operators != and !==
Strict Equality (==) Loose Equality (===) in JavaScript Read More »