Files
2024-01-24 19:52:36 +01:00

1.0 KiB

id, title, challengeType, dashedName
id title challengeType dashedName
62a3a488b24fb32b91155d56 الخطوة 7 0 step-7

--description--

Variables can be assigned a value. When you do this while you declare it, this is called initialization. For example:

let camperbot = "Bot";

This would initialize the camperbot variable with a value of Bot, a string.

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

--hints--

xp should have a value of 0.

assert.equal(xp, 0);

You should initialize the xp variable to 0. Don't forget the semi-colon at the end of the line.

assert.match(code, /let\s+xp\s*=\s*0\s*;/)

--seed--

--seed-contents--

<!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>
--fcc-editable-region--
let xp;
--fcc-editable-region--