11. creating a new object


#1

var myObj = me Object();
myObj["name"] = "Sue";
myObj["age"] = 40;

I am still seeing syntax error.
Please help!
And thanks in advance!


#2
  1. please don't revive really old topics, just make a new one (i now did this for you)
  2. nowhere in the topic could you find the solution?

myObj should be a new Object().


#3

Sure, will do!

var myObj = new Object();
myObj["name"] = "Sue";
myObj["age"] = 40;

Now I am see the age only, but still see the error
Oops, try again. Did you create an object called me?


#4

Ok ok ok! I got it.
var me = new Object();
me["name"] = "Sue";
me["age"] = 40;

Thanks a bunch!


#5