JSFiddle - React, Tailwind, and code Playground
by Diana Lemen
JavaScript
let test = prompt ("Enter your number")
const arr= [];
arr.push(test);
for (i=test; i != null; i++ ){
arr.push(test);
test = prompt("Enter your number")
}
alert(arr);
by Diana Lemen
let test = prompt ("Enter your number")
const arr= [];
arr.push(test);
for (i=test; i != null; i++ ){
arr.push(test);
test = prompt("Enter your number")
}
alert(arr);