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!

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

3,276 Points

Why do my answers appear twice?

Notice in this screenshot that my right answers and wrong answers appear twice. Why is this? I just want them to appear once. Any thoughts?

Here is the link to the screenshots


1 Answer

Hanley Chan
Hanley Chan
27,771 Points

I think it could be your print function. It appears that you are placing your output within the tag with id 'output' but you also have another document.write(message) at the end of the function.