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

Karl Croft
Karl Croft
265 Points

I am looking for the shout.js file, is it imaginary, do I create it in the workspace?? JAVASCRIPT BASICS

The shout.js file that will contain JavaScript code. To use this code in the index.html file add the correct HTML to load the external JavaScript file into the index.html page. Make sure to add your code inside the <body> of the page.

index.html
<!DOCTYPE HTML>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>
</head>
<body>

</body>
</html>
shout.js

4 Answers

Steven Parker
Steven Parker
231,271 Points

You create the content of this file in the challenge.

This challenge has two files, index.html and shout.js, both opened in the challenge editor and selected by the tabs at the top of the edit area. The shout.js file is initially empty, but you will add code to it.

Karl Croft
Karl Croft
265 Points

AHhh thanks.....

Karl Croft
Karl Croft
265 Points

I think I am getting the wrong challenge editor, I still have the one with scripts.js to which I added the tab shout.js I have a screenshot?

Steven Parker
Steven Parker
231,271 Points

You won't need to add a tab (I don't think that's possible anyway). Both tabs will already be present when you start the challenge. You just click on the tabs to switch which of the files you are looking at and editing. This is in the challenge, not the workspace.

The tabs will have a little "paper with folded corner" symbol followed by the file name.

Karl Croft
Karl Croft
265 Points

Ignore me, I understand now ! Inside the test itself. Thanks