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

why is it when you ask us to write code and we do, it’s never works. I think you don’t explain it correctly.

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 id="stats, controls, monsterStats, text"></div>
      <div id="stats, controls, monsterStats, text"></div>
      <div id="stats, controls, monsterStats, text"></div>
      <div id="stats, controls, monsterStats, text"></div>
    </div>
  </body>

<!-- User Editable Region -->

</html>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15

Challenge Information:

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

if you don’t know how to assign an id to an element I suggest you go through Responsive Web Design certification

the 4 listed ids, you need to give one to each element

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.