Q
What does "" == 0 evaluate to in JavaScript?
-
A
true
-
B
TypeError
-
C
undefined
-
D
false
Correct Answer:
A. true
Explanation:
The empty string converts to the number 0. This is why === is recommended.
ALSO KNOW (related points):
• What does "5" * "2" evaluate to in JavaScript? → 10