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

jennifer ray
jennifer ray
7,875 Points

variable challenge

hi can someone look over my code, I dont have any popup at all is it my code or computer although my computer was fine on all other tasks. https://w.trhou.se/1617gqvz3y

I just ran your code in codepen, it looks fine. Is the issue the prompt not showing?

jennifer ray
jennifer ray
7,875 Points

Yes that is correct, no prompt is showing. Also what is codepen? I have seen a few people use it?

Codepen is a service where you can host your code to share with others. Try it out, its really nice: http://www.codepen.io

1 Answer

In the index.html, the script tag doesn't refer to the JavaScript File, because its located in the CSS folder. Just move it to the root folder or replace your code with this one:

<script src="css/story.js"></script>

Regards