5: Tossing In an Array


#1

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!


#2

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