JavaScript JavaScript Basics Introducing JavaScript Link to an External Script

JavaScript Challenge Task 1 of 2 Use file name shout.js to complete the tasks. I can't move on with this challenge.

<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JavaScript Basics</title> <script src="shout.js"></script> </head> <body> <script> alert("Where to place JavaScript code?"); </script> </body> </html>

index.html
<!DOCTYPE HTML>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>
  <script src="shout.js"></script>
</head>
<body>
  <script>
  alert("Where to place JavaScript code?");
  </script>
</body>
</html>
shout.js
document.write("Welcome to JavaScript Basics at Treehouse!");

1 Answer

Robert Bennett
Robert Bennett
11,122 Points

<body> <script src="shout.js"> </script> </body> Inside the body tags