Friday, June 24, 2016

Identity (===) operator vs Equality (==) operator

Identity (===) operator
  • Do not do type conversion 
  • If a different type it just returns false. Types must be same to validate.

Equality (==) operator
  • Do type conversion 

**Other than that behaves identically.


No comments:

Post a Comment