WRITE A JAVASCRIPT PROGRAM TO ACCEPT 10 NUMBERS IN ANA
THE RUNTIME USING PROMPT, SORT THE DATA & DISPLAY INA.
ORDER
Answers
Answered by
0
let numbers=[];
for (i=0;i<10;i++) {
let a = prompt();
numbers.push(a);
}
numbers.sort();
console.log(numbers);
Similar questions