JavaScript Booleans

A boolean is a data type that can only have two values: true or false. In JavaScript, these true and false values are not strings but special keywords. Booleans might seem trivial and inconsequential, but they are very valuable and frequently used.

const isActive = true
const isAdmin = false