Utilizor
Contact Us

Logical Comparison

Combining comparisons.

Logical Comparison

Logical operators (&&, ||, !) are used to determine the logic between variables or values.

They allow you to combine multiple comparison expressions.

Example

if (age > 18 && hasLicense) {
  console.log("Can drive");
}