Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript JavaScript Basics (Retired) Introducing JavaScript The JavaScript Console

script.js file doesn't appear in Chrome Dev Tools Sources tab [Fixed]

Hi, I'm using Google Chrome for this tutorial and opened up Developer Tools (Dev Tools) to review my javascript errors.

I discovered you can edit your javascript code in Dev Tools by looking at the file using the "Sources" tab along the top of the Dev Tools window. The Source tab will highlight your errors in red (like in Microsoft Word) and allows you to make changes to the code directly (but you'll still need to update your file in Workspace).

So, I went to the "Sources" tab, which typically displays all the Workspace files in a file tree, but discovered my "scripts.js" file wasn't in the file tree. To fix this, I left the Dev Tools window open and refreshed the tutorial page. After refreshing, the script.js file appeared in the file tree and I was able to open it and look at the javascript errors.

Just wanted to share in case someone else ran into the same problem :)