SyntaxError: Expected ')'


#1

It keeps telling me that I am missing a ")", but I can't see where. Help please?

code:
var slaying = true;
var youHit = Math.floor(Math.random() * 2);
var damageThisRound = Math.floor(Math.random()* 4 + 1);
var totalDamage = 0;
while(slaying){
if(youHit){
console.log("You hit the dragon! ");
console.log(damageThisRound " "+"damage!");
totalDamage += damageThisRound
if(totalDamage >= 6){
console.log("Congratulations, you slew the dragon!");
slaying = false;
}
}else{
console.log("You got incinerated by the dragon!");
slaying = false;
}
};


#2

I went through and changed something and now it works like it should, so... success?

How it looks now:
var slaying = true
var youHit = Math.floor(Math.random() * 2)
var damageThisRound = Math.floor(Math.random()* 4 + 1)
var totalDamage = 0
while(slaying){
if(youHit === 1){
console.log("You hit the dragon!");
console.log(damageThisRound + " damage!")
totalDamage += damageThisRound;
if(totalDamage >= 6){
console.log("Congratulations, you slew the dragon!");
slaying = false
}
}else{
console.log("You got incinerated by the dragon!");
slaying = false
}
};