Help on Arrays and Objects "Practice makes perfect"


Hi, I really need some help for this exercise! Any help will be appreciated! :smiley:

Error i encountered: Did you make object3 an object?
ReferenceError: object is not defined
This is the code that i wrote:

var object1 = new Object(); = "f";
    object1.age = 32;
var object2 = new Object(); = "hi",
    object.age = 18
var object3 = new Object(); = "TKY";
    object3.age = 13;


when you create the age property for object2 you use object instead of object2, and object is not defined


also you have syntax errors:

var object2 = new Object(); = "hi"; // used , 
    object2.age = 18; // missed ;


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