mardi 17 mars 2015

Jumping back in an if/else statement

I have code looking like this:



var choice1 = prompt("a question").toLowerCase;

if (choice1 === option) {

alert("Something")
}

else {

alert("that's not possible")
go back to the original prompt

}


So, how would I go about going back to the original prompt to ask the question again?


Aucun commentaire:

Enregistrer un commentaire