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



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";


HI these lines

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

it should be spencer2 instead of spencer


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


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