<!DOCTYPE html>
<html>
<head>
<title>Chore Door!</title>
<link href="./style.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Work+Sans" rel="stylesheet" type="text/css">
</head>
<body>
<div class="header">
<img src="https://s3.amazonaws.com/codecademy-content/projects/chore-door/images/logo.svg">
</div>
<div class="title-row">
<img src="https://s3.amazonaws.com/codecademy-content/projects/chore-door/images/star.svg">
<p class="instructions-title">Instructions</p>
<img src="https://s3.amazonaws.com/codecademy-content/projects/chore-door/images/star.svg">
</div>
<table class="instructions-row">
<tr>
<td class="instructions-number">1</td>
<td class="instructions-text">Hiding behind one of these doors is the ChoreBot.</td>
</tr>
<td class="instructions-number">2</td>
<td class="instructions-text">Your mission is to open all of the doors without running into the ChoreBot.</td>
<tr>
<td class="instructions-number">3</td>
<td class="instructions-text">If you manage to avoid the ChoreBot until you open the very last door, you win!</td>
</tr>
<tr>
<td class="instructions-number">4</td>
<td class="instructions-text">See if you can score a winning streak!</td>
</tr>
</table>
<div class="door-row">
<img id="door1" class="door-frame" src="https://s3.amazonaws.com/codecademy-content/projects/chore-door/images/closed_door.svg" alt="closed door">
<img id="door2" class="door-frame" src="https://s3.amazonaws.com/codecademy-content/projects/chore-door/images/closed_door.svg" alt="closed door">
<img id="door3" class="door-frame" src="https://s3.amazonaws.com/codecademy-content/projects/chore-door/images/closed_door.svg" alt="closed door">
</div>
<div id="start" class="start-row">
Good Luck!
</div>
<script type="text/javascript" src="script.js"></script>
</body>
</html>
No problem. Useally when stuff does not work youre browser will give an error. If you press “F12” If you go to the console tab you will see the errors if there are any.
The code was still not running properly, it wouldn’t start another round but I managed to figure that out ;). It appeared that in the onclick event for the startButton the if statement should have been inside the onclick function rather than the other way round.
That was on my list of things to ask you about. Glad you solved it. Something else I was going to suggest is not using const on any variables that need to change, and using it on any that should not change, such as your cached nodes.