Boolean
The second simplest primitive of the language; its value can only be true
or false
.
It is useful for representing data that is limited to being in one of two states.
- Knot
- TypeScript
knot
const trueValue = true;const falseValue = false;
knot
const trueValue = true;const falseValue = false;
tsx
const trueValue = true;const falseValue = false;
tsx
const trueValue = true;const falseValue = false;