JavaScript Boolean Type

The Boolean type is a logical data type that has two possible values: true or false. Booleans are used heavily in conditionals and control flow statement to decide which section of a code to execute.

The Boolean class wraps the primitive the boolean type, which means that booleans are immutable and all operations on them will result in new boolean instances.

Read more on MDN

Boolean