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

JORGE GONZALEZ
JORGE GONZALEZ
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

https://drive.google.com/folderview?id=0ByGkh3KXsrkmfjNXeHZhVVJmX293SG1naEJvbE1fZVFTN1V5dWNobW5kdW9xVWpoWE9JUjg&usp=sharing

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.