(5/10)
Your First Array — JavaScript typing lesson
Create and work with arrays to store multiple values.
What you'll practice
Let's organize our toys into an array! An array is a container that holds multiple items in order.
- An array starts and ends with square brackets [].
- Each item in the array is a string, so it needs quotes ''.
📜JavaScript
Your First Array
0 WPM
0% Accuracy
0:00 Time elapsed
1
2
3
let toy_box = ['robot', 'car', 'dinosaur'];↵
console.log('my toys are');↵
console.log(toy_box);
0 / 93
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