Bug? Can't Get Past Ex. 30


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.


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

var spencer2 = new Object;
spencer2.age = 22; 
spencer2.country = "United States";


HI this line

var spencer2 = new Object;

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


Totally forgot the ()'s thanks!


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