Whats wrong?


#1

var me = {
name: name,
age: age
};

var me = new Object();

me["name"] = "f";
me.age = 32;


#2

Hi what the error do you get? and on what lesson are you ?


#3

well its on lesson 11. arrays and objects

the error: "Oops, try again. Is me an object? Use the syntax to the left as a guide!"


#4

on that lesson yous should create a object with the object constructor and you did it

var me = new Object();
me["name"] = "f";
me.age = 32;

so just remove that object

var me = {
name: name,
age: age
};

#5

thanks!

now its clear :slight_smile: