Why doesn't this work


#1

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


#2

You're almost there, just change :
var damageThisRound = Math.floor() *5 + 1);

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


So why doesnt this work so well