javascript - what is the difference between '!= 'and '!== ' -
possible duplicates:
is there difference between !== , != in php?
javascript === vs == : matter “equal” operator use?
in cases when checking not equal, saw using != , in places saw !==. there difference in that?
example:
var x = 10; if (x != 10) { //... } and
if (x !== 10) { //... }
== compares value , converts between types find equality, === compares types well.
Comments
Post a Comment