Sunday, March 15, 2015

Difference between == and === in JavaScript

== converts the operands to the same type before checking for quality.
== checks only for same value.

Example


=== does not converts the operands to the same type before checking for quality.
=== checks for same value + same type. 

Example


Link of Examples
== Comparison Operator
=== Comparison Operator