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

Tell us what’s happening:

i tried all possible ways but 17th number question in javascript didnt solved

Your code so far

<!-- file: index.html -->

<!-- User Editable Region -->

<html lang="en">
    <meta charset="utf-8">
    <link rel="stylesheet" href="./styles.css">
    <title>RPG - Dragon Repeller</title>
    <script src="./script.js"></script>
    <div id="game">
      <div id="stats">
        <span class="stat">XP: 0<strong><span id="xpText">0</span></strong></span>
<span class="stat">Health: 50<strong><span id="healthText">50</span></strong></span>
<span class="stat">Gold: 100<strong><span id="goldText">100</span></strong></span>
      <div id="controls"></div>
      <div id="monsterStats"></div>
      <div id="text"></div>

<!-- User Editable Region -->

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

Challenge Information:

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

Hi! Here is a template to help you understand the tag structure:

<span class="name">Text: <strong><span id="value">Number</span></strong></span>

And make sure you don’t forget one space after the Text.

Also you can rearrange this line into more readable structure to see the nesting more clearly:

<span class="name">Text: 
    <span id="value">Number</span>