Creating an object #11


#1


11. Arrays and Objects in JS


Did you create your object using the object constructor?


var me = {};
    
    me.name = 'Taylor';
    me.age=20;


#2

I have no idea why this is not working for 11


#3

because you need to use the constructor method? There are multiply ways to create an object, this exercise wants you specifically to use the constructor method, see information exercise:

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

var myObj = new Object();

#4

can you show me what that would look like? I'm still confused


#5

it is all in the left column of the exercise? How to create the object, and how to add the property's


#6

is your object name myObj or me?


#7

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