0
Why this "7" is a string?
3 Antworten
+ 4
Actually, it is equal to 7 but not triple-equal.
7 == "7"; //compares the value, which is the same(true)
7 === "7"; //compares the variable type, number to text(false)
+ 3
Because its inside the quotation marks. ""
7 is not equal to "7"
0
Thanks. Now I'm understand.