mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-13 16:04:36 -04:00
1.0 KiB
1.0 KiB
id, title, challengeType, dashedName
| id | title | challengeType | dashedName |
|---|---|---|---|
| 62a3b5843544ce3a77459c27 | Schritt 14 | 0 | step-14 |
--description--
Im Moment soll der Spieler nur mit dem stick beginnen. Change the inventory array to have stick as its only value.
--hints--
Your inventory variable should still be an array.
assert.isArray(inventory);
Your inventory variable should only have one value.
assert.lengthOf(inventory, 1);
Your inventory variable should include the string stick.
assert.include(inventory, "stick");
--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;
let fighting;
let monsterHealth;
let inventory = ["stick", "dagger", "sword"];
--fcc-editable-region--