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 (Retired) Introducing JavaScript Where Does JavaScript Go?

Darnekka Davila
Darnekka Davila
401 Points

for my script tag the first alert will not pop up but the second alert will appear after i review it

is this possibly minor error?

Tina Gee
Tina Gee
3,296 Points

Not too sure I understand the issue you're having but try making sure that your code has all the correct punctuations in the correct places. I had this issue earlier and the instructions were not running correctly.

Ali Abbas
Ali Abbas
2,097 Points

Hey Darnekka Davila,

I'm familiar with the issue you're having. The problem is that you didn't save the code of that file. For example, Let's say you added an alert message to the '.scripts' file and saved it, this doesn't save any new code added to the '.html' file. You have to click on the '.html' file and press save again to save any new content of that file as well. I believe this should resolve your issue. Take care and all the best with your coding!

1 Answer

My problem was creating/putting the script.js file in the css folder!