(2/10)
Magic Boxes — JavaScript typing lesson
Learn let and const for creating variables in JavaScript.
What you'll practice
Variables are like magic boxes that hold information. `let` is for things that can change, and `const` is for things that stay the same.
- The equals sign = puts something into the box (variable).
- Text needs quotes '', but numbers don't.
📜JavaScript
Magic Boxes
0 WPM
0% Accuracy
0:00 Time elapsed
1
2
3
4
5
6
let pet_name = 'typy';↵
const age = 1;↵
console.log('my pet is named');↵
console.log(pet_name);↵
console.log('it is age');↵
console.log(age);
0 / 136
Press This!
👇
`~
1!
2@
3#
4$
5%
6^
7&
8*
9(
0)
-_
=+
⌫
⇥
Q
W
E
R
T
Y
U
I
O
P
[{
]}
\|
⇪
A
S
D
F
G
H
J
K
;:
'"
↵
⇧
Z
X
C
V
B
N
M
,<
.>
/?
⇧
Thumb
Index
Middle
Ring
Pinky