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

Tell us what’s happening:

I don’t know where my problem is, I believe that this code is correct. Anyone, pls help me pass step 15 :rofl:

Your code so far

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

<!-- User Editable Region -->

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

<!-- User Editable Region -->

</html>
/* file: script.js */
let xp = 0;
let health = 100;
let gold = 50;
let currentWeapon = 0;
let fighting;
let monsterHealth;
let inventory = ["stick"];

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36

Challenge Information:

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

Hello and welcome to the forum.

Move your div closing tags to directly after each individual div opening tag. So your div opening and closing tag must be in the same line.