JavaScript JavaScript Basics Introducing JavaScript Link to an External Script

I not getting it. I'm sure its simple. cThere are two files: a web page, index.html, and a JavaScript file, shout.js

There are two files: a web page, index.html, and a JavaScript file, shout.js. To run any programming in the shout.js file, you first need to load it into the index.html file. Add the required HTML to load the external JavaScript file into the web page. Make sure to add your code inside the <body> of the page.

help me

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

1 Answer

Clayton Perszyk
MOD
Clayton Perszyk
Treehouse Moderator 45,756 Points

you need to add a script tag in the body of the document:

<script src="javascriptFile.js"></script>