-
Notifications
You must be signed in to change notification settings - Fork 8
/
script.js
48 lines (37 loc) · 985 Bytes
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
let rooms = [{
roomName: "bedroom",
dresser: [
"Red Shorts",
"Bieber Shirt",
"Socks",
"Swim Wear"
],
closet: [
"Dress Shirt",
"Gown",
"Blouse",
"Robe"
],
},
{
roomName: "bathroom",
cabinet: [
"Toothpaste",
"Toothbrush",
"Mouthwash",
"Face cleanser",
"Soap"
],
}
];
let suitcase = document.querySelector(".suitcase-text");
// 1. Take a look at the object above and all the items.
// Use object notation to access the needed items.
// 2. Update the empty curly braces to "Red Shorts".
suitcase.innerHTML += `<p>${}</p>`;
// 3. Update the empty curly braces to "Dress Shirt".
suitcase.innerHTML += `<p>${}</p>`;
// 4. Update the empty curly braces to "Toothpaste".
suitcase.innerHTML += `<p>${}</p>`;
// 2. Update the empty curly braces to "Toothbrush".
suitcase.innerHTML += `<p>${}</p>`;