9. Write a JavaScript program to generate n number of random numbers and st

  1. Write a JavaScript program to generate n number of random numbers and store them
    in an array. Sort the generated numbers in ascending order using array sort method.
    Develop separate functions to find mean and median of numbers that are in the array.
    Display the results with appropriate messages.