30.What are objects for?



Replace this line with your code.


Please post your code so we can help you accordingly:


Hey There !

My code looks like this:

// make spencer2 here with constructor notation

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

I don't know what is really wrong .
How I got that this is Object Constructor.


You are writing "new Object ()" and it should be "new Object()", no space between the word "Object" and the parentheses.



Let me try it