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 trialJosh VanHercke
1,677 Pointsi have NO clue whats wrong with my code...
im almost positive that my code is right, but then again.. im just starting, but i want to get this right before i move on, but i cant get the questions left to go down
2 Answers
andren
28,558 PointsYou simply have a typo. In these two lines:
questionsleft = ' [' + questions + ' questions left]'; // Line 5
questionsleft = ' [' + questions + ' questions left]'; // Line 8
You spell the variable name as questionsleft (all lowercase) in all other lines you spell it as questionsLeft (The L is capitalized).
Since JavaScript is case-sensitive it considers questionsleft and questionsLeft to be two entirely different names, and therefore entirely different variables. If you simply fix that capitalization difference then your code will work fine.
Josh VanHercke
1,677 PointsI see it now.. Oh how silly of a mistake.. I didn't even realize i did that.. Thank you