12. Practice makes perfect



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?


Did you mean to write, object1.age?


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


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