10. Another way to create - Syntax error


#1



https://www.codecademy.com/courses/spencer-sandbox/1/5?curriculum_id=506324b3a7dffd00020bf661#


Oops, try again. There was a problem with your syntax.


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

You need to remove the . between new and Object and just leave a space


#3

Thank you so much! Doh, I feel so dumb! :confused:


#4

A post was split to a new topic: 10. Another Way to Create


#5