12. Practice makes perfect


#1

https://www.codecademy.com/courses/javascript-beginner-en-9Sgpi/2/4?curriculum_id=506324b3a7dffd00020bf661#

Oops, try again. Did you make object2 an object?


var object1 = {};
object1.name = 'Stephanie';
object2.age = 26;

var object2 = {
    name: 'Tony',
    age: 32
};

var object3 = {};
object3.name = 'Nathaniel';
object3.age = 9; 


I’m not sure what is wrong here. My object2 is coded exactly the same as what was in the example, anybody know what I did wrong here?


#2

Did you mean to write, object1.age?


#3

That was it! Thanks. I don’t know what the heck got over me and how I missed that, but thanks!


#4

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