Exercise 2 am i missing something?


#1

okay i keep getting the error did you remember to set totalDamage to 0

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

#2

you need to capitolize the m in math.random :smiley:


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.