-
-
Notifications
You must be signed in to change notification settings - Fork 279
Expand file tree
/
Copy pathaddress.js
More file actions
19 lines (15 loc) · 649 Bytes
/
address.js
File metadata and controls
19 lines (15 loc) · 649 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//Predict and explain first...
// This code should log out the houseNumber from the address object
// but it isn't working...
// Fix anything that isn't working
const address = {
houseNumber: 42,
street: "Imaginary Road",
city: "Manchester",
country: "England",
postcode: "XYZ 123",
};
console.log(`My house number is ${address.houseNumber}`);
/* The code constructed well and the code is an object which is it is consist of key and value pair
in line 15 inside the console it is return in array method which is the code is not array so we have to change that
to object call "object.houseNumber" in this way it will work correctly */