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
Gena Israel
2,047 Pointsprompt not working
the windows aren't appearing that ask the user the questions so that i can input the data
ve
5,048 PointsCould you post your code so we can figure out the mistake?
Gena Israel
2,047 Points2 Answers
Jennifer Nordell
Treehouse TeacherHi there, Gena Israel! You have a syntax error in line 7 of your story.js. That string needs to not contain a new line. When I put the code on one line, the syntax error resolves and the prompt stops working. Take a look at the corrected line 7:
story += ' when a chimpanzee came out of nowwhere and asked the ' + noun + 'asked if he/she would like to' + verb;
Hope this helps!
Gena Israel
2,047 Pointssorry im not seeing what is different
Gena Israel
2,047 Pointsok i got it i deleted a space so the line 7 was together thanks
Jennifer Nordell
Treehouse TeacherJennifer Nordell
Treehouse TeacherBefore we look at your code, let's check some basics first. Make sure you've saved your file. Then restart the preview and refresh the page. If that doesn't work, try clearing your browser cache and/or loading the preview in an incognito window and refreshing the page. If that still doesn't work, we're going to need to see the code. The easiest way to do this is to link a snapshot to your workspace to us. The camera icon on the upper right-hand side of your workspace will allow you to create a snapshot which you can link here.