vendredi 6 mars 2020

My logical operators (javascript) not validating

if(num1 == num2 && num1 == num3){
money = money + 50;
document.getElementById("win").innerHTML = "Win!";
showmoney();
}else if(num1 == num2 || num2 == num3 || num1 == num3){
money = money + 25;
document.getElementById("win").innerHTML = "Win!";
showmoney();
}

This code does not return anything, event when the statements are true, how do I fix this?




Aucun commentaire:

Enregistrer un commentaire