tracks

Codecademy

Ajax-loader-large-white
8/71
JavaScript Quick Start Guide
Syntax

If you want to assign a boolean to a variable, just use the literals true and false.

Set the values below as appropriate using the assignment syntax we just learned about.

Instructions
?
Stuck? Get a hint! Hint

To set trueVal to true, you'd just type:

trueVal = true;

script.js

Sign in