const person = { firstname: 'John', lastname: 'Doe' }; console.log(person['lastname']); // expected output: "Doe"