Loops and Arrays Not Working!




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


@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?


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


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


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