What is wrong in my code?


30. What Are Objects For?

I get this message and I don't get why :frowning::
"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";


remove space between Object  and ()



Thank you very much!


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