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

Hello and thank you!
Why do I get " Sorry, your code does not pass. You’re getting there. Your first .stat element should have the provided text XP: 0."

  <body>
    <div id="game">
      <div id="stats">
        <span class="stat">"XP: 0"</span>
        <span class="stat">"Health: 100"</span>
        <span class="stat">"Gold: 50"</span>
      </div>
      <div id="controls"></div>
      <div id="monsterStats"></div>
      <div id="text"></div>
    </div>
  </body>

hi, you haven’t posted a link to the challenge so I haven’t double checked this before answering but perhaps the problem is the double quotes you have added? I would remove them.

1 Like

Very true! Well done!
I have suffered from a double quote binge!
Thank you so much for your help!

1 Like