12/13...help!


#1

var names = ["Brian", "Winston", "David", "Dani", "Rodney"]
for (var i = 0; i < names.length; i ++); {
console.log("I know someone called "+ names[i]);
}

Above is my code, below is the error message. What is wrong?!?

Oops, try again. Your code should have printed 'I know someone called Brian', but didn't. Make sure to type the 'I know someone called ' part exactly right, and don't forget the space between that phrase and the name!


#2

Don't kick yourself too hard, just remember that simple mistakes are the programmers worst nightmare.

for (var i = 0; i < names.length; i ++); 
                                       ^

Delete that semi-colon " ; "