DEMO: This demo introduces the Boolean data type. We have actually used these before in if statements!

Booleans are a data type that can have only two values: True or False.

Boolean expressions use an operator to create a question or condition that always equals True or False.

  • Click Run and watch the program run on the stage.
  • Follow along through the demo to learn about Booleans and Boolean expressions.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)