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

Giulia Bluestein
Giulia Bluestein
1,588 Points

Help! Why doesn't add up the correct answers?

Hello everyone,

If you have a couple of minutes to look over my code and see what I did wrong. I arrive to the final counting of the correct answers, but the system doesn't add them up!

https://w.trhou.se/i2eq9cyp8g

I can't figure out why it doesn't run as it should. Thanks!

4 Answers

Jesus Mendoza
Jesus Mendoza
23,289 Points

Hi Giulia,

You did great except for a little mistake, you forgot to execute the toUpperCase method.

To do that you just do answer3.toUpperCase(), answer4.toUpperCase() and answer5.toUpperCase().

Good luck!

Mohammed Al Qaraghuli
Mohammed Al Qaraghuli
3,170 Points

Hi can you post the code in the comments

Giulia Bluestein
Giulia Bluestein
1,588 Points

Never mind, guys. Thank you for your time. I figured it out lol

Your toUpperCase methods need to end with parentheses like this:

answer3.toUpperCase()