mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-12 03:00:53 -04:00
1.1 KiB
1.1 KiB
id, title, challengeType, dashedName
| id | title | challengeType | dashedName |
|---|---|---|---|
| 62a3b3eab50e193608c19fc6 | Passo 10 | 0 | step-10 |
--description--
Declare a variable called fighting but do not initialize it with a value. Ricordati di terminare la riga con un punto e virgola.
--hints--
Dovresti usare let per dichiarare una variabile chiamata fighting.
assert.match(code, /let\s+fighting/);
La variabile fighting non dovrebbe avere un valore.
assert.isUndefined(fighting);
Non dovresti assegnare un valore alla variabile fighting. Non dimenticare il punto e virgola alla fine della riga.
assert.match(code, /let\s+fighting;/);
--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 = 0;
let health = 100;
let gold = 50;
let currentWeapon = 0;
--fcc-editable-region--