Dragon Slayer The First "if" Statment


The first 'if' statement

Oops, try again. Make sure you log a message to the console to let the player knows if (s)he won or lost!

var slaying = false
var youHit = Math.floor(Math.random()*2)
var damageThisRound = Math.floor(Math.random()*5+1)
var totalDamage = 0
while (slaying === true){
        console.log("You hit");
    else {
        console.log("You missed");
    slaying = false;


slaying is false, so the loop never runs


Thanks for the help!