JavaScript JavaScript Basics Introducing JavaScript Link to an External Script

luckius kajoka
luckius kajoka
1,695 Points

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 18,411 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.)

luckius kajoka
luckius kajoka
1,695 Points

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

luckius kajoka
luckius kajoka
1,695 Points

hi alexander ,thanks verry much i got it.