JavaScript in 60 Seconds
Data Types: Boolean
A boolean can have only 2 values:
true
or
false
let isReady = false; if (isReady) { // this won't run } isReady = true; if (isReady) { // now it will run }
let
isReady
=
false
;
if
(
isReady
) {
// this won't run
}
isReady
=
true
;
if
(
isReady
) {
// now it will run
}