JavaScript JavaScript Basics Introducing JavaScript Link to an External Script

How do you link to an external script?

How do you link to an external script because i can't make it?

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

Cooper Runstein
Cooper Runstein
11,734 Points

You need to include a script tag in your html:

<script src="PATH_TO_FILE"></script>

If you need help figuring out that relative path to your file, comment so.