+ 1
Need help with this please..I keep getting a error with the else statement, what can be the cause?
5 Respostas
+ 3
if (playerOne < playerTwo); {
document.write("player two Win!")
}
return document.write("double K.O!")
+ 2
var playerOne = prompt("Enter player one score");
var playerTwo = prompt("Enter player two score");
if (playerOne > playerTwo) {
document.write("Player one Win!")
}
if (playerOne < playerTwo) {
document.write("player two Win!")
}
if (playerOne == playerTwo) {
document.write("double K.O!")
}
0
Thx m8!