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 Introducing the Practice

Yemaya Re
PLUS
Yemaya Re
Courses Plus Student 1,922 Points

geometry.js not recognized?

Hey, so the console/browser is not recognizing the geometry file. I attached it JUST LIKE in all off the previous videos where we've attached a script. It's not working giving a 404 error.. any ideas? Thanks!

<head> <meta charset="UTF-8"> <title>Practice JavaScript Math</title> <link href="css/styles.css" rel="stylesheet"> <script type="text/javascript" src="geometry.js"></script> </head>

Yes I agree, I am encountering the same error here.

1 Answer

geometry.js is located inside a file called js

you need to change the the src in the html to

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

Wayne Topp
Wayne Topp
948 Points

Thank you!!! I was having exactly the same problem! This absolutely fixed the problem and allowed me to see all my other mistakes! :)

Sean Flanagan
Sean Flanagan
33,235 Points

Hi Yemaya Re, Trent Stenoien and rossace23. sulaiman abouabdah has answered your question. I've given Sulaiman an up vote, but Yemaya may want to give him Best Answer so we know the question has been answered.

Thank you Sulaiman!