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

2 Answers

Jason Larson
Jason Larson
7,174 Points

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.

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.