3/8 Adding your friends Unexpected Token?


var friends = new Object();
friends[bill]= new Object();
friends[steve]= new Object();

Tells me "SyntaxError: Unexpected token }"
Not sure what that means, can someone please explain.


The problem is caused by these two lines:


Do you know why?


I can't say I do. Please explain.


You are trying to add the values "Bill" and "Steve" as objects, but they should be string keys to firstName.


Oh Now I get it. Ok thank you very much for your help!