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

Jeremy Yochum
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Jeremy Yochum
Front End Web Development Techdegree Graduate 16,023 Points

Is this a typo?

This paragraph in the teacher's notes does not make sense to me. I might not be understanding it correctly. If the player's second guess is greater than the random number, correctGuess would not be true. It would only be true if the player guesses the correct number.

"The second else if clause also has a nested if statement. If the player's second guess is greater than the random number, correctGuess changes to true."

Mark Sebeck
Mark Sebeck
Treehouse Moderator 37,799 Points

Hi Jeremy. What you said sounds correct but can you post a link to the video?

1 Answer

Mark Sebeck
MOD
Mark Sebeck
Treehouse Moderator 37,799 Points

Yes definitely a typo. That paragraph should read something like "The second else if clause also has a nested if statement. If the player's second guess is greater than the random number, the player can guess again. If that guess is correct, the correctGuess variable changes to true."

Nice catch Jeremy. You can try to report it as a bug and you could earn the Exterminator Badge. Check the support page for details.