Question: web development OExercise 1 (CL01, CLO2, CLO3, CLO4): Write a JavaScript program that creates an array of integers, and a function median that returns the
web development
OExercise 1 (CL01, CLO2, CLO3, CLO4): Write a JavaScript program that creates an array of integers, and a function median that returns the Median of the array list. . Create Script for function median (list). o Function median(list) will sort the array passed o It will determine whether the array's length is odd or even by using the modulus operator. Test your code by creating two lists; one has odd amount of numbers, and the other one even amount of numbers. O . Create HTML file to run the Script. Example: s medians.html X + C O File C:/Users/esra.alnashash/Desktop/medians.html * Esra Apps Te Attendance M Gmail E-Learning Programming Cont Programming Cont... Others Events Median of [1.3.4.7.8.9) is: 6 Median of [-2.0.1.3.5.7.10] is: 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
