Arrays and objects help


#1

My code doesn't seem to work. Ive done everything. I give up.

var me = {
    name "Jeremiah",
    age: 16
};
var me = new Object();

#2

Hi this part

    name "Jeremiah",

Its missing the : after name


#3

Thanks, forgot to add that back. it states "Make sure to give the me object a key called name., but i dont know how to do that. That was the main part i was stuck on.


#4

The error come from here

var me = new Object();

You should add the key name to it! Do you remenber how it work?

var myObject = new Object();
myObject.name = "wizmarco"

#5

This comes out wrong.


#6

Van you post your new code And The error you get?


#7

Make sure to give the me object a key called name. is what i get when i run this code.


#8

Can you post your new code?
And on which lesson are you?


#9

var me = {
    name: "Jeremiah",
    age: 16
};
var me = new Object();
Object.name = "Jeremiah";

Im currently on "Creating a new object (11)"


#10

Hi you created a object me if you want to add it the proprety name you should do it like that

var me = new Object();
me.name = "Jeremiah";

#11

I now have a new issue going on with the code. The error is


#12

Nevermind. Got through:

var me = {
    name: "Jeremiah",
    age: 16
};
var me = new Object();
me.name = "Jeremiah";
me.age = 16;