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.
const orderPaid = true;
In a sentence
- “The Boolean isMember decides whether the customer gets the discount.”
Level: Novice · More JavaScript terms at this level
Updated