Plz help


#1

var names = ["niels", "hans", "henk", "jan", "piet"];

for (var i = 0; i < names.length; i++); {
console.log("I know someone called" + " " + names[i]);
}
this is my code but somehow it only prints one name and i get this error message to: Oops, try again. Your code should have printed 'I know someone called niels', 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!

can someone plz help me


#2

Hi this line remove the ;

or (var i = 0; i < names.length; i++); <--

#3

thank you so much that helped

i kind of feel stupid now that i didnt find that after a longgg time of staring at code :sweat_smile:


#4