added boolean variables example (#21244)

This commit is contained in:
LRodriguez
2018-11-08 05:15:55 -06:00
committed by nik
parent ad678a10ce
commit de990a6ed0

View File

@ -4,8 +4,10 @@ title: Boolean Type
# Boolean Type
`boolean` is your basic JavaScript true/false value.
`Boolean` is your basic JavaScript true/false value.
`Boolean` variables are used to indicate whether a condition is true or not, or to represent two states, for example if a light is on or off.
```typescript
let isDone: boolean = false;
```
let isTurnedOn: boolean = true;
```