Loops and Arrays Not Working!


#1

Help!!


#2

See how you have for (var i = 0; etc. etc.). Well you follow that up with a semicolon. Semicolons signify a stop. The loop stops at the semicolon. Remove the semicolon and it should work.

You can learn when to use semicolons here and when not to use them here


#3

@rhyscrypto, I think you added an addtional " for your second link as I was initially lead to "Page doesn't exist".

Are you referring to this?
https://www.codecademy.com/en/forum_questions/507f6dd09266b70200000d7e


#4

The semicolon after the for loop should be gone and there should be one after console.log


#5

I was indeed, thanks. I didn't think to check but I guess I should start doing that now.


#6

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