Skip to content

Glossary: JavaScript Basics

Boolean

Also written: boolean, booleans

A type with only two values, `true` and `false`, used for yes-or-no answers such as whether an item is in stock. Comparisons give booleans.

Where the book teaches it