var clashRoyale confirm("Welcome to the Arena, Challenger! To Enter the Full game, you must Beat me. The Creator.");
if (clashRoyale === true) {
alert("Well then. Prepare for the Battle to start your Journy in the World of Clash Royale.");
} else {
alert("Well then, if you don't want to fight, I won't fight");
}
if(clashRoyale === false) {
alert("I lied, DIE");
} else {
alert("Hahaha, DIE!!!");
}
var ClashRoyale = prompt("The Creator played a Pekka. What will you play? a SKELETON ARMY, a MINION HORDE, or a GOLEM").toUpperCase();
switch(ClashRoyale){
case 'SKELETON ARMY':
var hit = confirm("Are you sure you want to play that card?")
if(hit === true) {
alert("The Pekka Dies.")
} else {
}
case 'SKELETON ARMY':
var hit = confirm("Are you sure you want to play that card?")
if(hit === true) {
alert("The Pekka Dies.")
} else {
}
I need to loop the if else
statement back to the first prompt.