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.
Premium
reset
function greet(name) { return `Hello, ${name}!`; } console.log(greet("Erik"));
JavaScript
Run Code
Console