-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproblem58.js
More file actions
43 lines (33 loc) · 759 Bytes
/
problem58.js
File metadata and controls
43 lines (33 loc) · 759 Bytes
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
let students = {
2222: {
name: "Jack",
section: "C",
class: "IX",
address: {
"building no": 12,
street: "St. Jonson",
city: "Petersburg",
country: "UK",
},
},
3333: {
name: "Herry",
section: "D",
class: "X",
address: {
"building no": 85,
street: "DC road",
city: "Kachukhet",
country: "Bangladesh",
},
},
};
/*=========================================
Display:
1. Petersbur
2. Herry
============================================ */
const firstDisplayValue = students['2222']['address']['city'];
console.log(firstDisplayValue);
const secondDisplayValue = students['3333']['name'];
console.log(secondDisplayValue);