Object spencer and spencer2 have the same age, but it says that they aren't the same


#1


https://www.codecademy.com/courses/spencer-sandbox/5/1?curriculum_id=506324b3a7dffd00020bf661#


It's correct, but it says that the ages are not the same


var spencer = {
  age: 22,
  country: "United States"
};

// make spencer2 here with constructor notation
var spencer2 = new Object();
    spencer.age = 22;
    spencer.country = "United States";


#2

HI these lines

spencer.age = 22;
spencer.country = "United States";

it should be spencer2 instead of spencer


#3

Thank you so much! I can't believe I didn't see that!


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.