Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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:

~Alex

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
215,984 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.