Booleans
may only be one of two values: true
or false
. They are basically little on-off switches, where true
is "on" and false
is "off." These two states are mutually exclusive.
NoteBoolean
values are never written with quotes. The strings
"true"
and "false"
are not Boolean
and have no special meaning in JavaScript.
welcomeToBooleans
function so that it returns true
instead of false
when the run button is clicked.
welcomeToBooleans()
function should return a boolean (true/false) value.'
testString: 'assert(typeof welcomeToBooleans() === ''boolean'', ''The welcomeToBooleans()
function should return a boolean (true/false) value.'');'
- text: welcomeToBooleans()
should return true.
testString: 'assert(welcomeToBooleans() === true, ''welcomeToBooleans()
should return true.'');'
```