Skip to content

Commit 62fe3e1

Browse files
committed
Fix address logging to correctly display house number
1 parent de6889c commit 62fe3e1

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,5 +1,7 @@
11
// Predict and explain first...
22

3+
/* Prediction - the house number would return as undefined */
4+
35
// This code should log out the houseNumber from the address object
46
// but it isn't working...
57
// Fix anything that 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)