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! Add JavaScript to HTML

Cornel Schenk
Cornel Schenk
120 Points

Why is the 1st code message not Running? The same with the 2nd code. Cannot get it to Run.

The 1st code message does not RUN once I refresh JavaBasics clicking on view for JavaBasics to come up. The 2nd code message is not Running either after I saved and refreshed JavaBasics. I have done everything exactly according to the video, but these 2 codes is Not Working.

Can you please help me out ? I just paid the first $25 for this month.

3 Answers

Since I can't see your file structure or your code, I'm going on faith that you entered everything exactly as Guil did. Just in case you didn't, one thing you'll want to check is to make sure that your filename is lowercase and that the src information is in all lowercase. Also, make sure that the alert command is all lowercase. If the case is wrong for any of those, it's not going to work. Also, be sure after you save that you are previewing the workspace using the little eye icon in the upper right. I am going to assume that you are using Google Chrome. If you've checked the above items and everything looks correct, when the page comes up in the browser, right click on the page and choose "Inspect". This will give you the Developer Tools. Click on the Console tab and see if there are any error messages listed. If so, reply back with the error, as that should help narrow down where your issue might be.

Hyrum Zumbrun
Hyrum Zumbrun
177 Points

thank you so much solved my problem

I found the error just remove js/ from script tag and the code will work and link properly to the html

Cornel Schenk
Cornel Schenk
120 Points

Hello Jason,

Thank you for your help. I found the problem. I didn't know how to save everything. Once I saved it, the first command showed up in the Java script page.