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 trialGiulia Bluestein
1,588 PointsHelp! 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!
I can't figure out why it doesn't run as it should. Thanks!
4 Answers
Jesus Mendoza
23,289 PointsHi 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
3,170 PointsHi can you post the code in the comments
Giulia Bluestein
1,588 PointsNever mind, guys. Thank you for your time. I figured it out lol
KRIS NIKOLAISEN
54,972 PointsYour toUpperCase methods need to end with parentheses like this:
answer3.toUpperCase()