I have written down this code, for like a minigame with a password, and I want that if he writes the password right, or writes end, then it really ends, showing us a message, but in case he writes other stuff or nothing that it continues to ask, but It is not completely right.
do{
var password = prompt("What is the password? Just give up by typing end, you won't find it, heheeh.")
if(password == "I11I1II1I"){
window.alert("Ok, ahha, so fun, going to the code, and searching for the password, yes yes yes good job, you won, yey")
}
else if(password == "end"){
window.alert("Bye Bye, ehhe.")
}
else{
window.alert("I don't know how you found me, but hey, you won't find the password, eehhehe.")
}
}
while((password == "") || (password != "I11I1II1I") || (password != "end"))