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

I got stuck here.

I highlighted the part where I got stuck, kindly check where I put
THIS PART!

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>
  <body>
    <div id="game">
    </div>
  </body>
</html>
/* file: script.js */

// User Editable Region

**THIS PART!**
let xp = "0";

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36

Challenge Information:

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

Letters and numbers are different. When you put quotes around it, it’s a string. What is the step asking?

1 Like

“Initialize your xp variable to have a value of 0, a number.”

Okay I removed the quotes and got it, Thank you