Skip to content

Commit 6c28930

Browse files
author
JorvanW
committed
Changed code in address. js to specify houseNumber
1 parent 872ddf0 commit 6c28930

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎Sprint-2/debug/address.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
// Predict and explain first...
2+
// To specify house number the console.log should use. address.houseNumber.
3+
// without it, It would show as undefined
24

35
// This code should log out the houseNumber from the address object
46
// but it isn't working...
@@ -12,4 +14,4 @@ const address = {
1214
postcode: "XYZ 123",
1315
};
1416

15-
console.log(`My house number is ${address[0]}`);
17+
console.log(`My house number is ${address.houseNumber}`);

0 commit comments

Comments
 (0)