I have a doubt, I want to exit from program with conditional if, for example:
var number = prompt("Choice a number between 1 and 6");
var random = Math.floor(Math.random() * 6) + 1;
if (parseInt(number) > 6){
document.write("<p>Please, choice a number between 1 and 6</p>")
// Here, I want to exit of conditional and program.
} else {
if()
}
if() {
} else {}
It´s possible.
Thank you very much