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

Tell us what’s happening:

what is wrong with my code? why it didn’t work?

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>
  </head>

<!-- User Editable Region -->

  <body>
    <div id="game">
    </div>
    <div id="stats">
    </div>
    <div id="controls">
    </div>
     <div id="monsterStats">
    </div>
    <div id="text">
    </div>
  </body>

<!-- User Editable Region -->

</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/120.0.0.0 Safari/537.36

Challenge Information:

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

This code,

Should be in the #game div, this div.

1 Like

oh, got it. Thank you.

1 Like