JavaScript Booleans

Booleans can only have two values: true or false. Booleans are often used in conditional testing:

  var x = true;
  var y = false;


More about conditional testing later in this tutorial.

Back Table of Contents Next