What is wrong with this code?


#1

what is wrong with this code

var me = {
 age: 'young',
 name: 'a name'
    }
    me["height"] = "tall";

i have no idea how to do objects, could someone please explain?


#2

it should look like this:
var me = {
age: "young",
name: "a name"
}
me["height"] = "tall";


#3

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