Using a JS console when using the following code:
const person = {
age: 20,
name: "Ben"
};
const peopleArray = [person, person, person];
peopleArray[1].name = 'Joe';
console.log(peopleArray[0].name); (Returns: Joe)
4.7m questions
6.1m answers