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!

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


I honestly have no Idea where to go from here I know that I need the src code but I have no idea where to put it and how to finish it please help ASAP

  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>

1 Answer

Hi Chantz,

The first step of the challenge is asking you to link to the .js file.

Usually, the <script> tags go just before the closing </body> tag so that is where you should put it. Make sure to put the "src=" and point to your .js file inside the first <script> tag and to add the closing </script> tag.

The second part of the challenge asks you to create an alert inside the shout.js file so you'll need to navigate over to that and add the code. Be sure to add it exactly as it's described in the challenge or it won't pass i.e. make sure to use all UPPERCASE and don't forget the exclamation point.

The clues are actually all written in the challenge wording. Just relax, take a deep breath and read it slowly and you should be fine :-)

Hope that helps Don :-)