JavaScript JavaScript Basics Introducing JavaScript Link to an External Script

how can i write the alert "I DID IT" here inside the file?

help me please.

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" ></script>
 <script>
  alert("I DID IT");
</body>
</html>
shout.js

Chanda Lupambo
Chanda Lupambo
Pro Student 20,535 Points

firstly you need to close your script tag and just re-write the alert in shout.js.

2 Answers

Your JS code is fine, just move it into shout.js. (To modify shout.js, switch to that tab in the code challenge.)

but why it shows that i failed, and how can i move it help me please.

hi alexander ,thanks verry much i got it.