I don't get this


#1

var friends=new Object();
friends.bill=new Object();
friends.steve=new Object();
bill.firstName="Bill";
bill.lastName="Gates";
bill.number="555-113-253";
steve.firstName="Steve";
steve.lastName="Jobs";
steve.number="655-127-123";

What did i do wrong?


#2

bill and steve objects don't exist yet, friends.bill and friends.steve do.


#3

so proper syntax would look how?


#4

friends.bill.firstName="Bill";

instead of:

bill.firstName="Bill";


#5

makes sense. much obliged.