Question · JavaScript and TypeScript course · Module 2: Functions, Arrays and Objects
Boolean Data Type
Which of the following values can the Boolean type in JavaScript take?
Answer options
- yes and no
- on and off
- true and false
- 1 and 0
Show the answer
Correct answer:
- true and false