# Boolean

*noun*

say it: **“BOO-lee-un”** **/ˈbuːliən/**

A value that can only be true or false, used for yes-or-no facts such as isOpen or hasPaid.

## What is **Boolean** in JavaScript?

**Boolean** — A primitive type whose only values are true and false.

```javascript
const orderPaid = true;
```

## In a sentence

- “The **Boolean** isMember decides whether the customer gets the discount.”

Level: Novice · [More JavaScript terms at this level](https://www.ask-codey.com/glossary?category=javascript&level=1)

Updated: November 9, 2026

## In other subjects

- [Boolean in General](https://www.ask-codey.com/glossary/boolean)
- [boolean in Java](https://www.ask-codey.com/glossary/boolean-java)

Source: https://www.ask-codey.com/glossary/boolean-javascript
