JS
challenger
Home
JavaScript Basics
booleans
Assign boolean to a variable
Assign boolean to a variable
Here, we declare the variable
isTrue
. But, it has no value yet. Assign a boolean value to it and run the code.
reset
let isTrue;
console.log(isTrue);
JavaScript
Run Code
Console