30/33 Please help


#1

I can't seem to find out what the problem is with my object constructor code for this exercise. Please help?

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

Remove the white space:

var spencer2 = new Object();

#3

Change it :

spencer2["age"] = 22;
spencer2["country"] = "United States";

Hold on :wink:


#4

Thank you, I had missed that.