12 Practice Makes Perfect - TypeError


#1



Hello to everyone!
sorry guys, but I'm really getting mad for undestanding what's wrong with my code.
What did I get wrong?
Thank you :slight_smile:

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


TypeError: object3 is undefined


var object1 = {
    var1 : 'Variable1',
    var2 : 'Variable2',
    var3 : 'Variable3'
};

var object2 = new Object();
object2['number1'] = 5;
object2['number2'] = 10;
object3['number3'] = 15;


var object3 = new Object();
object3.variable1 = 'variable1';
object3.variable2 = 'variable2';
object3.variable3 = 'variable3';


#2

@cssmaster23191,

Have a close look at

object3['number3'] = 15;


#3

Whoa! I must be blind!

Thank you! :smiley: