Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FSD Module 5 Activity > In Class > Conditional Statements > Creating a Choose-Your-Own-Adventure Game - Bug in code - Step 4; Line 7 #1

Open
Instructor-Stan opened this issue Oct 26, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@Instructor-Stan
Copy link

Instructor-Stan commented Oct 26, 2021

This is in FSD Module 5 ==> In Class ==> Conditional Statements ==> Creating a Choose-Your-Own-Adventure-Game activity

Step 4 in this activity "Respond to the user's answer..." has a bug in it.
Line 7 "if (answer" should be "if (firstAnswer"
It needs to be corrected in both the image and the "copy text"

1 : let firstAnswer = window.prompt('Do you head left or right?')
2 : if(firstAnswer === 'left'){
3 : let secondAnswer = window.prompt(You come across a stray cat. 4 : It scampers off down a small hole, just large enough for you to crawl through. 5 : Do you follow it, or continue on your path?)
6 :
7 : } else if(answer === 'right') { // this line should read "if(firstAnswer === 'right')"
8 : let secondAnswer = window.prompt(You come across a snoring dragon. 9 : On the other side of him, you see a shiny chest of treasure. Another path would 10 : lead you away from the dragon altogether. Which path do you take?)
11 :
12 : }

@Instructor-Stan
Copy link
Author

This is in FSD Module 5 ==> In Class ==> Conditional Statements ==> Creating a Choose-Your-Own-Adventure-Game activity

1 10 2-2-bug

@Instructor-Stan Instructor-Stan added the bug Something isn't working label Oct 26, 2021
@Instructor-Stan Instructor-Stan changed the title Bug in code - Step 4; Line 7 FSD Module 5 Activity > In Class > Conditional Statements > Creating a Choose-Your-Own-Adventure Game - Bug in code - Step 4; Line 7 Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant