5/8 dont understand whats wrong


#1

var list = function(friends){
for(var firstName in friends) {
console.log(firstName);
}
};

WHAT IS WRONG WITH THIS? IT KEEPS SAYING SYNTAX ERROR OR DID I DEFINE FUNTION LIST


#2

Maybe
++++ reset of session *****************
under certain circumstances you can shoot your Browser in an
inconsistent state.

Therefor it is of an advantage to know that you have 2 reset facilities:

One is the use of the F5-key which does a refresh Browser

and

Two, select&copy your code
Then use the Reset Code button of the course-window,
then paste your code back in.

Addendum
General Notes:
Always refresh the browser after making corrections:
CTRL f5 ( if on Windows or Linux)
CMD r ( if on a MAC).
CTRL 0 to reset browser zoom


#3

@raylinjones if you define "list" before you define "friends" it won't know what "friends" is. Check to make sure you defined "friends" before the code for the "list" function.