All lessons

Variables

6 min · JavaScript

Store values in named boxes called variables, then reuse them.

JavaScript · Variables0/5 cleared

Enemy 1 of 5

A variable is a name that holds a value. You make one with let: the name, an equals sign, then the value.

Once it is stored, use the name anywhere instead of repeating the value.

You
Cold-Start Frostling

Loading editor...

Ln 1, Col 1Spaces: 4
Sign up to fightTarget output: Ada