JavaScript JavaScript Basics Introducing JavaScript Link to an External Script

What am i missing?

What am I missing. I feel i did it right; maybe didn’t punctuate it correctly.

index.html
<!DOCTYPE HTML>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>
</head>
<body>
  <script src="shout.js";>
    alert('I DID IT');
  </script>

</body>
</html>
shout.js

1 Answer

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 38,860 Points
alert('I DID IT');

needs to go in the shout.js file

Chau Mai
Chau Mai
2,331 Points

You should not have a semi-colon after the ending quotation inside your opening script tag. You can remove the semi-colon and get rid of the alert() message in your .html file, then move it over to the .js file.

Hope that helps!