mardi 26 janvier 2016

Not Equal Condition not working (JS)

Why does my alert always shows up whith the following code :

var choix = "a";
while (choix.toUpperCase() !== "Q") {
  choix = prompt(hello + "\n");
  if((choix.toUpperCase() !== "A") || (choix.toUpperCase() !== "L") || (choix.toUpperCase() !== "Q")) {
    alert("Choisissez L, A ou Q !");
  }
}

Aucun commentaire:

Enregistrer un commentaire