curriculum/challenges/english/blocks/learn-basic-javascript-by-building-a-role-playing-game/62a3a0a3c0a4b32915d26a6e.md
Remove your console.log("Hello World"); line to begin writing your project code.
In the previous project, you learned how to work with variables and the let keyword like this:
let camperbot;
You also learned how to initialize a variable with a value like this:
let age = 32;
Use the let keyword to declare a variable called xp and assign it the value of 0, a number.
You should not have a console.log("Hello World"); line in your code.
assert.notMatch(code, /console\.log\(\s*('|")Hello World\1\s*\)\s*;/);
You should use the let keyword to declare your variable.
assert.match(code, /let/);
You should declare a variable named xp.
assert.match(code, /let\s+xp/);
xp should have a value of 0.
assert.equal(xp, 0);
You should initialize the xp variable to 0.
assert.match(code, /let\s+xp\s*=\s*0\s*;?/)
<!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--
console.log("Hello World");
--fcc-editable-region--