Learn Basic JavaScript by Building a Role Playing Game - Step 4

Tell us what’s happening:

Hi,

I am not able to iidentify what to put in between the script elements.

My current code is:

Thank you!

Your code so far

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="./styles.css">
    <title>RPG - Dragon Repeller</title>

<!-- User Editable Region -->

    <script>
      
    </script>

<!-- User Editable Region -->

  </head>
  <body>
    <div id="game">
    </div>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36

Challenge Information:

Learn Basic JavaScript by Building a Role Playing Game - Step 4

you should not but anything inside the script element, but you need to add an attribute following these instructions:

Then give your now empty script element a src attribute set to ./script.js .

What should the src elemnt look like??

I tried <src=‘./script.js’>

Welcome to the forum @aebisu29

The syntax for the script element.

<script attribute></script>

Happy coding

Thank you! The code passed.

1 Like