I am trying to make a simple thing that changes the value of the paragraph based on a prompt. I have the javascript encoded into the html. But when I run it, the screen is blank. The prompt doesn't even show up. I am a beginner, so this is probably easy to solve, but could someone please help? Thank you in advance.
<!DOCTYPE html>
<html>
<head>
<title>Randomness!</title>
</head>
<body>
<p id="change"> </p>
<script>
var change = prompt("Enter 1 or 2");
if (change === 1) {
document.getElementById("change").innerHTML = "You said one!";
}
if change === 2 {
document.getElementById("change").innerHTML = "You said two!";
}
else {
document.getElementById("change").innerHTML = "That was not an option.";
}
</script>
</body>
</html>