Saturday, 28 May 2016

Interview Question's, difference between “==” and “===”?



Interview  Question's, difference between “==” and “===”?

Ans : “==” will checks only for equality i.e.,
This will compare  if the left and right values are equal
Eg: 1 == 1



"==="  This will compare the left and right values are equal, and compare if both the values are of the same variable type

No comments:

Post a Comment