(4/10)
Pro Access Required
This is a premium lesson. Upgrade to Pro to unlock this interactive exercise and continue your learning journey.
📜JavaScript
Magic Word Game
0 WPM
0% Accuracy
0:00 Time elapsed
1
2
3
4
5
6
7
8
9
10
let secret_word = 'javascript';↵
let guess = prompt('guess the word');↵
↵
if (guess.toLowerCase() == secret_word) {↵
console.log('you got it');↵
} else {↵
console.log('nope not the word');↵
}↵
↵
console.log('your guess had ' + guess.length + ' letters');
0 / 253
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