Boolean Value Quiz
Multiple Choice Beginner
Question
Which of the following is a valid boolean value?
Hint
Booleans have exactly two literal values, and neither has quotes.
Explanation
The boolean type has exactly two values: true and false (no quotes, lowercase). "true" is a string, 1 is a number (though it is truthy), and yes is not a valid keyword. Only the bare word true is a boolean.
Related Resources
Related Lessons
- Data Types
Learn about the fundamental data types in programming.
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.