Utilizor
Contact Us

Logical Operations

Using booleans in logic.

Logical Operations

Booleans are the basis for all JavaScript comparisons and conditions.

The value of a comparison is always a Boolean.

Example

let x = 10;
let y = 9;
console.log(x > y); // true