var slaying= true;

var youHit= Math.floor(Math.random() * 2);

var damageThisRound = Math.floor(Math.random()*5 + 1);

var totalDamage = 0;

while(slaying=== true)

{

slaying= false;

}

Help!!!!!!!!!!!!!!

var slaying= true;

var youHit= Math.floor(Math.random() * 2);

var damageThisRound = Math.floor(Math.random()*5 + 1);

var totalDamage = 0;

while(slaying=== true)

{

slaying= false;

}

Help!!!!!!!!!!!!!!

Hi !

VERY INTERESTING ! because I have a question about this point .

First are the get hint "advices " just a way to find the solution but they are not the solution , aren't they ?

So

var slaying = true; while(slaying) { slaying = false;}

is just the frame of the solution , isn't it ?

Secondly I get a green "Way To Go" yet I was advised in the red editor page to add a function . I did it but I was surprised because in the Get hint page , no function are advised to be put in the code . ???