mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-13 22:00:19 -04:00
1012 B
1012 B
id, title, challengeType, dashedName
| id | title | challengeType | dashedName |
|---|---|---|---|
| 62a3b3eab50e193608c19fc6 | Step 9 | 0 | step-9 |
--description--
Declare a variable called fighting but do not initialize it with a value.
--hints--
Використайте let, щоб оголосити змінну fighting.
assert.match(code, /let\s+fighting/);
Змінна fighting не повинна мати значення.
assert.isUndefined(fighting);
Не присвоюйте значення змінній fighting.
assert.match(code, /let\s+fighting\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 = 0;
let health = 100;
let gold = 50;
let currentWeaponIndex = 0;
--fcc-editable-region--