Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript JavaScript Loops, Arrays and Objects Tracking Multiple Items with Arrays Build a Quiz Challenge, Part 2 Solution

Masha Blair
Masha Blair
13,005 Points

Here is how I solved this challenge: https://codepen.io/mashablair/pen/OxemeP

Here is my version of the Quiz-2 solution: https://codepen.io/mashablair/pen/OxemeP

2 Answers

Steven Parker
Steven Parker
230,995 Points

Very close! But if you miss more than one question, it will only display the last one.

On line 29 you have:

    wrongQuestionsList.innerHTML = "<li> " + quizz[i][0] + "</li>";

You probably meant to use the concatenating assignment operator ("+=") there instead (as you did on line 27).

Masha Blair
Masha Blair
13,005 Points

Thank you, Steven! Yes, that's a bug. :)