5: Tossing In an Array


var freinds = new Object();

friends.bill = new Object();
friends.bill.firstName = "Bill";
friends.bill.lastName = "Gates";
friends.bill.number = 555
friends.bill.address = ['One Microsoft Way','Redmond','WA','98052']
friends.steve = new Object();
friends.steve.firstName = "Steve";
friends.steve.lastname = "Jobs";
friends.steve.number = 666
friends.steve.address = ['One Microsoft Way','Redmond','WA','98052']

The error says : "Oops, Did you give both of your friends an address?"
I'm not sure why this is happening, can someone please enlighten me!


Check your initial var declaration - friends is misspelled. You have it written as "var freinds"