Welcome to the Treehouse Community
Looking to learn something new?
This is the solution I came up with, tips and criticism needed!
Here's a few things to improve on:
Do not create the done variable inside the for loop. This is unnecessary and can be done one time, right after the for loop ends. Move the line out of the loop.
Don't use questions.length when creating the done variable, use loop.length as you used in the for loop. The reason for this is that you may not necessarily use the questions variable when you call startQuiz, and this could lead to errors.
Rename the loop variable! Try something more descriptive like questionArray
Hope this helped! (: