-
What is the Boolean value of “” in JavaScript?
-
- false
- off
- on
- true
- None of these
Correct Option: A
For an empty string (“”), the Boolean value is false. E.g. var t= “ ”; Boolean(t); //it will return false. For -0(minus zero), the Boolean value is false. The Boolean value of undefined is also false. For null and false the Boolean value is also false.