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!

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 JavaScript Basics (Retired) Storing and Tracking Information with Variables The Variable Challenge Solution

lakhmissi heba
lakhmissi heba
2,011 Points

the 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?

Can you provide your code (just the JavaScript code is enough)? It really helps other students understand what might be causing this issue :grin:


You may have linked the script for story.js twice in your index.html.

2 Answers

Blake Powell
Blake Powell
4,175 Points

the 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
Steven Parker
227,126 Points

Without 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.