+ 2
== and ===
what is the difference between equal and identical?
8 Réponses
+ 3
In javascript, == only checks if the values are same, it doesn't care of datatypes.
so, 3 == "3" is true.
=== on the other hand checks both values and datatypes. so,
3 === "3" is false.
+ 6
== this is use for the same value
=== this is use for the same value and same datatype.
+ 5
like String integer(numbers) characters
+ 5
true
"3" is string
3 is number
+ 3
Don't attribute yourself the best answer mark @@
That doesn't give you any XP, show a bad image of you, and pervert the purpose of moving on top useful answer ^^
+ 2
ok...stupid question...what is datatype?
im soo sorry
+ 1
you mean if 3 === 3 is true but 3 === "3" is false ?
+ 1
ohhh ok thx really helped me