0
I am still a layman in JS, but this question I believe to be simple, I intend if if the user type a numerical value instead of letters, he write on the screen 'Wrong instance! ' and if he typed any letter different from my name 'Elienay' he returned to the question, repeat it again
var name = prompt("Digite seu nome:","");
if (name=="Elienay") {
document.write("Exato");
}
else if(name== 0 to 999){
document.write("Instancia errada!");
}
else if(name != "Elienay"){
}
If it is a letter or a sequence different from my name, it has to make the return, repeat the question, what worked in your code was if you type a number
– Elienay Junior
at the end, it is not for him to write anything, because if you type some letter out of my name and some letter out of sequence, he has to repeat the question, understood..
– Elienay Junior
and from what it seems he is considering wrong if I type my name with the first minuscule letter
– Elienay Junior
I edited the question by adding
– Costamilam