Need help with exercise 30 what are objects for?


#1


Exercise 30 What are objects for


Oops, try again. Make sure that spencer and spencer2 have the same value for country


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

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


#2

Maybe try to change

"spencer.country = "United States" "

to

"spencer2.country = "United States" "


#3

Thanks mate :slight_smile:


#4

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