I am learning Javascript on Codecademy, and after entering in my code to make a short contact list, it returns an error message of:
SyntaxError: Unexpected identifier
Here is my code:
var friends = {
var bill: {
firstName: "Bill",
lastName: "Gates",
number: "1800 4 charity",
};
var steve: {
firstName: "Steve",
lastName: "Jobs",
number: "1800 I have lots of jobs",
};
};
Any help is greatly appreciated thanks :)
varand replace;with,insidefriendsfriendsobject needs to look more like the inner objects: novaror semicolons inside.