Arrays and Objects in JS 12/17


#1

Can someone help me out here?

var object1 = {
name = "Matt",
age = 20
};
var object2 = new Object();

object2["name"] = "Brigette";
object2["age"] = 20;

var object3 = new Object();

object3.name = "Maggie";
object3.age = 77;`


#2

Figured it out! can't use the equal sign to assign value to the keys within the curly braces!