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 The Solution

MIA ASHCROFT
MIA ASHCROFT
2,442 Points

Why doesn't he have to step out of the CSS folder before going into the JS folder?

When linking the JS to the HTML, I stepped out of CSS (../) then into JS to the go ahead and link the files together, and this worked. But he didn't, and it STILL worked... why?

1 Answer

Kevin Gates
Kevin Gates
15,053 Points

He's linking from the index file, which is a sibling to the CSS folder and JS folder. Therefore, his link way js/math.js