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

prompt not working

the windows aren't appearing that ask the user the questions so that i can input the data

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Before 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. :sparkles:

Could you post your code so we can figure out the mistake?

2 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi 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! :sparkles:

sorry im not seeing what is different

ok i got it i deleted a space so the line 7 was together thanks