Well, that's it, I need that if the catch goes away, the try in loop plan is executed again.
try{
miFuncion();
}catch(Error){
alert("¡Introduce un número entre 1 y 99!");
};
Well, that's it, I need that if the catch goes away, the try in loop plan is executed again.
try{
miFuncion();
}catch(Error){
alert("¡Introduce un número entre 1 y 99!");
};
You may prefer to use a loop instead of a try catch
do {
alert("¡Introduce un número entre 1 y 99!");
}
while(!miFunction())