How to make a JavaScript program that receives two positive numbers and repeats the interval between them using while
?
var num1 = Number(window.prompt("Entre com primeiro numero"));
var num2 = Number(window.prompt("Entre com segundo numero"));
var numero = 0;
if( num1 >=0 && num2 >=0){
while (numero>= num1 && numero >=num2){
document.write (numero+" ");
numero++;
}
}