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 JavaScript Basics Hello, JavaScript! Debug JavaScript in the Console

No 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

Make 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
.a{fill-rule:evenodd;}techdegree seal-36
Shawn Kelley
Full Stack JavaScript Techdegree Graduate 16,226 Points

Hi 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.

Be sure you're saving your file before you click preview.

Israel Wiseman
Israel Wiseman
190 Points

I have the same problem. I made sure I saved the file.