Welcome to the Treehouse Community
Looking to learn something new?
somethings wrong with my code
Not sure what's wrong with my code but none of it has worked in the browser yet. I have to assume I've made a syntax error but can't find it. Anyone care to take a look?
Joel Bardsley31,242 Points
Hi William, if you view the developer console in the web browser, you'll see get the Reference Error 'questions is not defined' on line 2. Here's the JS code that's contributing to this error:
var question = 3; var questionsLeft = '[' + questions + ' questions left]'; ...
You'll notice you've named your variable question but then have referenced questions throughout the rest of your code. Just make the necessary change to your variable name on line 1 and everything should work ok.