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 triallakhmissi heba
2,011 Pointsthe prompt window is asking me to put a value twice ?? nay idea how to stop that?
it keeps popping up for the second time, any idea why?
Vanessa Sharma
1,876 PointsYou may have linked the script for story.js twice in your index.html.
2 Answers
Blake Powell
4,175 Pointsthe video tells you to add the script to the html file, but the script is already on the html file. so you end up running the .js file twice.
Steven Parker
231,271 PointsWithout seeing the code this is just a guess — but is your prompt statement in a loop? And if not, are you sure you don't have the same prompt twice in the program?
To enable a more complete and accurate analysis, post your (property formatted) code. Or even better, make a snapshot of your workspace and post the link to it here.
Alexander Davison
65,469 PointsAlexander Davison
65,469 PointsCan you provide your code (just the JavaScript code is enough)? It really helps other students understand what might be causing this issue
~Alex