12. Loops and arrays


#1

Please help me, I don't understant what I did wrong, I already put a space between them.

Thank you


#2

i < names.length

#3

Ok, thanks a lot for your help konaesan!


#4

You're welcome @nobodyevt


#5

does it need the ( ) after length?


#6

No @danim0it .. It's an error


#7

Is there any error in this code?
Sorry about the portuguese, I'm learning in my language!

Code:

var names = ["Dani", "Douglas", "Lala", "ABC", "AKSJKA"];

for (var i=0, i < names.length, i++) {
console.log("Eu conheço alguém chamado " + names[i]);
}


#8

Yes you use commas in your for loop where you should use semicolons.


#10

It didn't solve the problem. In "11. Loops and arrays" Codecademy uses commas.


#11

Could you post the link to the exercise and the other exercise you're referring to?
Also what error message do you get?


#12

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.