tracks

Codecademy

Sign in Sign up
Ajax-loader-large-white
9/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
Back to Editor

Sign in