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 trialYemaya Re
Courses Plus Student 1,922 Pointsgeometry.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>
rossace23
3,819 PointsYes I agree, I am encountering the same error here.
1 Answer
sulaiman abouabdah
5,314 Pointsgeometry.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
948 PointsThank you!!! I was having exactly the same problem! This absolutely fixed the problem and allowed me to see all my other mistakes! :)
Sean Flanagan
33,235 PointsHi 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!
Trent Stenoien
Full Stack JavaScript Techdegree Graduate 21,632 PointsTrent Stenoien
Full Stack JavaScript Techdegree Graduate 21,632 PointsIt's hard to say without the code