30 create new object question - resolved!



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


Hi this line

 var spencer2 = new Object ()

remove the space between Object and ()


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();