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 Basics (Retired) Making Decisions with Conditional Statements The Conditional Challenge Solution

Lioz Elinger
Lioz Elinger
4,766 Points

I'm not sure if it should work that way

I did the challenge pretty close to the teacher's note, but if I put a wrong answer in the beginning, the counting stops and even what the rest of the questions are right, the counter is on 0. Is it supposed to be like that?

thanks.

Steven Parker
Steven Parker
231,236 Points

No, it should still count any correct answers. We can help you find the error if you share your code here. The best way is to make a "snapshot" (using the camera icon) and then post the link it gives you here.

Lioz Elinger
Lioz Elinger
4,766 Points

While copying it in here I realised my mistake. I kept using the first variable name in every question.

Thank you for the fast response :)

1 Answer

Steven Parker
Steven Parker
231,236 Points

Congratulations, good job spotting the error yourself! :+1:

Keep up the good work, and happy coding!