Promptles
Programming Basics

Boolean

beginner

Definition

A value that can only be true or false, used for yes-or-no questions such as "has this order been paid?"

In the wild

`let isPaid = false;` starts out false. Once the customer pays, the code sets it to true and the receipt button appears.

More from Programming Basics