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

Chandler Carlo
PLUS
Chandler Carlo
Courses Plus Student 291 Points

All i am getting is 404 not found Is there any way to fix it?

When i Try to preveiw my variable challenge i look in the console and all there is is 404 not found?

1 Answer

Loris Guerra
Loris Guerra
17,536 Points

You should check your <script> tag, probably you end up writing a wrong path to your JavaScript file, so that your HTML file can't find the file you're referring to and gives you a "Not Found" Error.

Be sure it's

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

or

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

and your "story.js" file is in the root of your project folder.

Hope this helps

Loris