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

The output rank code is not working correctly.It is always showing 1 correct answer out of 5.

1 Answer

Steven Parker
Steven Parker
243,658 Points

You forgot the parentheses after "toUpperCase" in all but the first instance.

Also, you're adding different values to "correct" for each question, so right now the highest possible score is "You got 15 out of 5 questions correct." :laughing:

And you have "PHYTON" instead of "PYTHON".

Initially those values were correct then I ve started changing them because I was desperate and forgot to put the correct ones back. The parentheses!!! I didn’t think about this mistake at all.THANKS for your help.Now everything works correctly . About “phyton” ? let’s forget about it !