JSFiddle - React, Tailwind, and code Playground
by oganez09
JavaScript
var num = [];
for (var x = 1, y = 0; x <= 100; x++, y++) {
num[y] = x;
}
do {
var result = prompt("Введите число от 1 до 100", 0);
}
while (result < 1 && result > 100 && result != null);
alert( result );