boolean

boolean — A primitive boolean.

Description

boolean

Examples

Example #1 – boolean
var a = true; var b = new Boolean(true); console.log(typeof a); // boolean console.log(typeof b); // object console.log(a); // true console.log(b); // Boolean {true}

See also

External references