Bug? Can't Get Past Ex. 30


#1


I think i've found a bug in the test for section 13, exercise 30. The code provided creates a new object with all of the same values as the original object. For some reason, the code doesn't pass the test.

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


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

var spencer2 = new Object;
spencer2.age = 22; 
spencer2.country = "United States";
console.log(spencer2)
console.log(spencer)


#2

HI this line

var spencer2 = new Object;

you should add () to Object ( Object() )


#3

Totally forgot the ()'s thanks!


#4

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