August 2016
Beginner to intermediate
847 pages
17h 28m
English
There are only two values that belong to the Boolean data type: the values true and false, used without quotes:
> var b = true; > typeof b; "boolean" > var b = false; > typeof b; "boolean"
If you quote true or false, they become strings:
> var b = "true";
> typeof b;
"string"