Creating a new object


Arrays and Objects in JS

i keep geeting error in my code

var meObj = {};
var meObj = new object(); = "vishal";
meObj.age =  22;


Use one or the other, but not both.

should be, new Object();


thanku mtf
i correct my error but know i am getting error
""Make sure to give the me object a key called name.""
corrected code is this
var meObj = new Object(); = "vishal";
meObj.age = 22;


This suggests to me the variable name should be me = "Wee Gillis";


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