ymbirtt
0
Q:

boolean


var x = false;

var y = new Boolean(false);


 //
typeof x returns boolean

 //
typeof y returns object
 
4
 0 (for false) 
 1 (for true)
0
In computer science, the Boolean data type is a data type that has one of two possible values which is intended to represent the two truth values of logic and Boolean algebra. It is named after George Boole, who first defined an algebraic system of logic in the mid 19th century.
0
bool x = true;
if (x) { print ("Hello") }
0

New to Communities?

Join the community