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 trialMadeleine belanger
49 PointsNo matter what I change under "script.js" I still get the blue javascript screen. Even if I type complete jibberish.
I'm not sure what I"m doing wrong, every time I click preview from the workspace I get the same blue "hello javascript" message. Even if i type random letters. I noticed this when none of my errors were registering. Not sure what I'm doing wrong.
4 Answers
Kim B
4,991 PointsMake sure your script.js file is linked to the HTML file as described in the previous video. The Preview is showing the preview of the HTML file, not the JavaScript file by itself. To see the errors as shown in the video, you have to link the JS file to the HTML file using the <script> tag.
Shawn Kelley
Full Stack JavaScript Techdegree Graduate 16,226 PointsHi Madeleine! Can you share your code? That may help everyone spot what's going on. I'm just another student, but I'm feeling confident and may be able to help.
Jason Larson
8,359 PointsBe sure you're saving your file before you click preview.
Israel Wiseman
190 PointsI have the same problem. I made sure I saved the file.