10 - Another way to create



Oops, try again. Make sure susan1 and susan2 have the same name property

Cannot work out what I've done wrong here :frowning:

// 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 ();
susan.name = "Susan Jordan";
susan.age = 24;


you need susan2.name and such for susan2


Oh of course :open_mouth: thanks!


No problem happy coding! :smiley:


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