+ 1
I don't get what identical means. Can anyone please help out?
3 ответов
+ 6
i hope this example help you
var x=10;
y="10"; /*there is string*/
document.write( x==y)
the answer will be true
but
if document.write(x===y)
the answer will be false
+ 1
Equal to (==) compares only the value, but Identical(===) also compares the type along with the value
0
Imagine a glas of water and a glas if beer! The same volume diferent liquids - not identical. Now look at two glases of beer! The same volume and the same liquid - so we can say they are identical.