(5/10)

Key Value Pairs (Objects) — JavaScript typing lesson

Learn objects to store data as key-value pairs.

What you'll practice

An object stores information in key-value pairs. It's like a real dictionary where you look up a word (the key) to find its meaning (the value).

  • Objects use curly braces {}.
  • Each key is a word, followed by a colon :, then its value.

Pro Access Required

This is a premium lesson. Upgrade to Pro to unlock this interactive exercise and continue your learning journey.

📜JavaScript

Key Value Pairs (Objects)

0 WPM
0% Accuracy
0:00 Time elapsed
1
2
3
4
5
6
7
let pet_passport = {↵
name: 'typy',↵
animal: 'robot',↵
age: 1↵
};↵
↵
console.log(pet_passport.name);
0 / 106
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
L
;:
'"
↵
⇧
Z
X
C
V
B
N
M
,<
.>
/?
⇧
Thumb
Index
Middle
Ring
Pinky