30 create new object question - resolved!


#1



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

I can't figure out what I'm doing wrong here. Could anyone please help? Any input is appreciated.
It says "Oops, try again. Make sure to use the Object constructor."

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

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


#2

Hi this line

 var spencer2 = new Object ()

remove the space between Object and ()


#3

I think the only difference between your code an mine was that I didn't have a space between Object and the parentheses (); so just remove the space and try out your code,

var spencer2 = new Object();