(10/10)
📜JavaScript
Beginner Project
0 WPM
0% Accuracy
0:00 Time elapsed
1
2
3
4
5
6
7
8
9
10
11
let treasure_chest = ['gold coin', 'map'];↵
console.log('you have a treasure chest');↵
let choice = prompt('type add or see');↵
↵
if (choice == 'add') {↵
let new_item = prompt('what to add');↵
treasure_chest.push(new_item);↵
}↵
↵
console.log('your treasure chest has');↵
console.log(treasure_chest);
0 / 297
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