Lesson Dragon slayer - JavaScript, i need help!


#1

enter link description here
I need help to this , i know the languague are in portuguese " I am portuguese " but can you guys help me? i dotn know what is wrong with that code .


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



#2

Im so ■■■■■■■ ididot <-< I know the problem now :smiley: ahjahjhahaa
Line2 : var youHit = Math.floor(Math.random()*2);
Correct line2: var youHit = (Math.floor(Math.random()*2);
" ( "


#3

Hint: The problem was that on this line:

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

you had wrongly written math.