Welcome to the Treehouse Community
Looking to learn something new?
correct = correct + 1; isn't doing anything
the variable correct value isn't adding up + 1 if questions are answer correct? help please
Jennifer NordellTreehouse Teacher
Hi there, Angelo Doe! A good thing to keep in mind when learning to program is that just about everything is case-sensitive and I'm not kidding. Even files and folder names are case sensitive in many cases!
In two places in your code you have written
toLowercase instead of
toLowerCase. Note the capitalization of the C. Furthermore on each of these you have inadvertently omitted the parentheses following. They all should look similar to this:
answer.toLowerCase() === 'answer';.
Finally, you have both a capitalization and usage error in the when parsing an integer. You should be sending in the answer to the
parseInt(finalQuestion) === 15
Hope this helps!
Steven Parker216,033 Points
When calling a function or method (such as "toLowerCase"), the function/method name must be followed by parentheses even if no argument is being passed.
Also, the "parseInt" function is spelled with a lower-case "p" and it is not a method, so you should pass the argument to it in the parentheses instead of applying it with dot notation.
For future questions, please include the code directly or provide a link to a workspace snapshot. That will allow for a more thorough analysis in case the cause of the issue is not so obvious.