Dragon slayer no. 3


#1


https://www.codecademy.com/courses/javascript-beginner-en-mrTNH-6VIZ9/0/3?curriculum_id=506324b3a7dffd00020bf661


ok so i havent been nline for quite a while and ive completly forgot how to complete a whle loop :grimacing: please could you help me (Y)


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


#2

Dont worry :slight_smile: take a look at here again.how while loop look like............


#3

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