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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -