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

jose macedo
jose macedo
6,041 Points

why doesnt my program run????

for some reason my console says theres a problem on 138 i think with }

https://w.trhou.se/o5jqx6nokm

2 Answers

Steven Parker
Steven Parker
229,708 Points

Ryan's correct that you have an extra brace at the end. Plus a few other issues:

  • in the latter half of the 4th question, you have "fourth" in 2 places where you should have "fourthtry"
  • in the latter half of the 5th question, you have "fifth" in 2 places where you should have "fifthtry"
  • on line 109 you have "else if (fifth.toUpperCase() === 'Bs')" but "Bs" should just be "B"
  • on line 112 you have "fiftht" spelled with an extra "t"
  • there are several lines that have "rank = rank + 0;", they can all be left off as this does nothing.
jose macedo
jose macedo
6,041 Points

how you are incredible how long have you done this?

Hey Jose!

I deleted one of the curly brackets "}" at the very end of your code and it worked well! The one I found was on line 139, but you are right on the money with the problem being about the " } " bracket. I think there was just one too many.

Changed to answer