12Arrays and Objects. Practice makes perfect


#1

Please, help me! I can't understand what is wrong.

var object1 = {};
object1.age = 44;
object2.color = 'blue';

var object2 = new Object();
object2.age = 67;
object2.color = 'grey';

var object3 = {
width: 65,
color: 'red'
};


#2

here:

object2.color = 'blue';

you try to add color to object2 before declaring object2, are you sure you didn't intent to add the blue color to object1?


#3

Thank you very much! So stupid mistake!


#4