Question · JavaScript and TypeScript course · Module 1: JavaScript Basics

Boolean Type

What values can the boolean type hold in JavaScript?

Answer options

  • Any text
  • true and false
  • 0 and 1
  • yes and no
Show the answer

Correct answer:

  • true and false