-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexercise-1.js
More file actions
40 lines (29 loc) · 767 Bytes
/
Copy pathexercise-1.js
File metadata and controls
40 lines (29 loc) · 767 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
/*
Return the keys and values of the following object
*/
let capitalCities = {
scotland: 'Edinburgh',
kenya: 'Nairobi',
australia: 'Canberra',
canada: 'Ottawa'
};
let highScores = {
55: 'Alistair',
100: 'David',
89: 'Hannah',
34: ['Sergi', 'Frank',]
};
// ONLY EDIT BELOW HERE
let capitalCitiesKeys = ;
let highScoresKeys = ;
let capitalCitiesValues = ;
let highScoresValues = ;
// ONLY EDIT ABOVE HERE
console.log(capitalCitiesKeys);
// prints [ 'scotland', 'kenya', 'australia', 'canada' ]
console.log(highScoresKeys)
// prints ['34, '55', '89', '100']
console.log(capitalCitiesValues);
// prints [ 'Edinburgh', 'Nairobi', 'Canberra', 'Ottawa' ]
console.log(highScoresValues)
// prints [[ 'Sergi', 'Frank' ], 'Alistair, 'David', 'Hannah']