Javascript: Booleans

A boolean data type is one of two values. Either true or false.


var age = true;
var weight = false;

Note that you do not use quotes around the true or false keyword as that would make it a string i.e. "false".