Difference between == and === operator in JavaScript

Posted by jineesh uvantavida on Monday, June 7, 2021
 ‘==’ operator
  • check abstract equality i.e. it does the necessary type conversions before doing the equality comparison
 ‘===’ operator
  • strict equality i.e. it will not do the type conversion hence if the two values are not of the same type, when compared, it will return false


Tags: difference between == and === operator in javascript 

Translate This Page

 


Make a free website with Yola