"Inconsistent" Values Look Consistent


#1



My code is saying to make that the two variables "spencer and spencer2 have the same value for country." It looks to me like I gave them the same values. I do not know what the system thinks is wrong.


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

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


#2

specner2

check spelling


#3

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