Computer Science, asked by yasarh2000, 3 months ago

WRITE A JAVASCRIPT PROGRAM TO ACCEPT 10 NUMBERS IN ANA
THE RUNTIME USING PROMPT, SORT THE DATA & DISPLAY INA.
ORDER

Answers

Answered by santdas36
0

let numbers=[];

for (i=0;i<10;i++) {

let a = prompt();

numbers.push(a);

}

numbers.sort();

console.log(numbers);

Similar questions