What is the problem with this code? The debugger says:"Syntax Error:Unexpected token )"


#1

var user = prompt("A futuristic tank shoots a shell at your mighty Abram tank.What do you do?").toUpperCase();
var damage=30;
var burningdamage=10;
switch (user) {

case 'Shoot':
    console.log("The enemy tank fires back damaging the turret.You have dealt medium damage to the enemy tank body.");
     if(damage >= 20){
        console.log("Your turret machine gunner is now dead, and computer system parts are going haywire.");
    }
    else(){
        console.log("Your machine gunner is injured by the second blast.");
    }
    break;



case 'Attack':
    console.log("The enemy tank fires back damaging the turret.You have dealt medium damage to the enemy tank body.");
        if(damage >= 20){
        console.log("Your turret machine gunner is now dead, and computer system parts are going haywire.");
    }
    else(){
        console.log("Your machine gunner is injured by the second blast.");
    }
    break;



case 'Bring backup':
    console.log("You call backup, but the backup Airstrike team does not come in time. Your tank gets destroyed by multiple shots.");
    if(damage == 100 || burningdamage == 10){
        console.log("Your crew escapes from the tank but gets killed.");
    }
    else(){
        console.log("Your crew hides in the remaining part of the tank waiting for help.");
    }
    break;
    
    
    
case 'Ram the enemy tank':
    console.log("Both tanks collide and your tank along with the other gets destroyed. You have died and will never discover the enemy threat.");
    if(dammage == 110 && burningdamage ==10){
        console.log("You will never discover the domination plans of this mysterious evil enemy organization.");
    }
    else(){
        console.log("Hahahaha! The enemy laughs as he wikedly drives the futuristic tank on.");
    }
    break;
    
    
    
default:
    console.log("Boom! The enemy tank fires another round.");

}


#2

You don't put any condition or parentheses for else.. You have two brackets you need to remove them


#3

Will thank you, I did not actually know that the two () without conditions could be a problem.


#4

If has a condition else doesn't need a condition as else runs if, the condition in if is not met..

if(condition) {
//execute something;
} 

else{
//something different;
}