What Have I done here


#1

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 = 1){
console.log(" Well Done. You had a 50/50 chance.");
}else{
console.log(" Ha you noob!");

}
slaying = false;
}


#2

Don't worry, I forgot that you had to write exactly the same code. Sorry!