Strict Equality Result
Multiple Choice Beginner
Question
What does 0 === "" return?
Hint
=== checks type and value.
Explanation
0 === "" returns false because === checks both type and value without coercion. 0 is a number and "" is a string, so they are different types. With == (loose equality), 0 == "" would be true due to type coercion. Always prefer === to avoid unexpected coercion bugs.
Related Resources
Related Lessons
- Data Types
Learn JS data types.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.