Creating a new object


#1

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/javascript-beginner-en-9Sgpi/2/3?curriculum_id=506324b3a7dffd00020bf661#

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
Oops, try again. Did you create your object using the object constructor?

```

var me = new object();
me.name = “khamis”;
me.age = 26;

<do not remove the three backticks above>

#2

When you use the constructor, the syntax looks like this:

var myObj = new Object();

Object() case sensitive.


#3

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