Monday, May 24, 2021

Difference between double equal sign and triple equal sign in javascript

So far as Double Equals ( == ) sign is concerned it checks for value equality only. Double Equals inherently does a thing that is called type coercion.  On the other hand, Triple Equals ( === ) does not perform any kind of type coercion. It will verify whether the variables that are  being compared have both the same data value AND the same data type. This is how we can understand difference between double equal sign and triple equal sign in javascript.

No comments:

Post a Comment