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 Link to an External Script

idriss Elouilani
idriss Elouilani
Courses Plus Student 1,232 Points

it took for ever just little issue

I don't know what do u mean u didn't call alert message

  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>
  <script src="shout.js"></script>
  <script>alert("I did IT")</script>


1 Answer

Steven Parker
Steven Parker
230,248 Points

It looks like you misinterpreted the instructions.

For task 2, the challenge says, "Inside the shout.js file, write the code for an alert dialog with the message 'I DID IT!'", but it looks like you added a second set of script tags to the HTML file instead.

So put the HTML file back to how it was after task 1, then add the new code in the shout.js file (without any HTML tags). Also keep in mind that the challenge may be picky about the output strings, so be sure to copy exactly what is in the instructions, including using the same case for the letters.