10/33 Another way to create. NEED HELP please


#1

Says make sure susan2 is an object...


10/33


"Oops. Make sure susan2 is an object"

// Our bob object again, but made using a constructor this time 
var bob = new Object();
bob.name = "Bob Smith";
bob.age = 30;
// Here is susan1, in literal notation
var susan1 = {
  name: "Susan Jordan",
  age: 24
};
// Make a new susan2 object, using a constructor instead
var susan2 = new Object();
susan2.name = "Susan Jordan";
susan2.age = 24;

#2

Hmmm, I tested your code and it worked perfectly... It's also exactly what I have. Try refreshing?


#3

lol. I was losing my mind! Refreshing fixed it! Thanks!


#4

It's pretty rare that you have to refresh to fix a problem, but sometimes the session times out. I'm glad it worked! Happy coding!


#5

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