You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The template literal is using bracket notation with an index to access the house number. But Objects are not iterable so they not have indexes. So the result will be undefined?
// 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}`);