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 (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
216,108 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
216,108 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