Message not logging into the Console


I don't know if my code has any thing wrong but when I submit it says "Oops, try again. Make sure you log a message to the console to let the player knows if (s)he won or lost!"

I have a it set up to log a message but it says I haven't

var slaying = false;
var youHit =Math.floor(Math.random()*2);
var damageThisRound = Math.floor(Math.random()*5+1);
var totalDamage = 0;

while(slaying) {
if (youHit) {
console.log("Yay You Won");
} else {
console.log("Sorry,you lost");
slaying = false;

Any ideas?


On your first line of code slaying is supposed to be true, not false