I can't understand whats wrong with my code


exercise 11/17 objects and arrays in JS

It says it's wrong because "Oops, try again. Make sure to give the me object a key called name"

var me = {};
var me = new Object();
me.age = 15;


you declare the me object in two different ways, why?

it seems me currently has only one key, age. add a second key called name


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