--- id: 63508abbff1c4c5210d68cc5 title: Step 19 challengeType: 0 dashedName: step-19 --- # --description-- Time to start working on the median calculation. The median is the midpoint of a set of numbers. Begin with an empty function called `getMedian`, which should take an `array` parameter. # --hints-- You should define a `getMedian` function. ```js assert.isFunction(getMedian); ``` Your `getMedian` function should take an `array` parameter. ```js assert.match(getMedian.toString(), /\(\s*array\s*\)/); ``` Your `getMedian` function should be empty. ```js assert.match(getMedian.toString(), /\(\s*array\s*\)\s*\{\s*\}/); ``` # --seed-- ## --seed-contents-- ```html
Enter a list of comma-separated numbers.
The mean of a list of numbers is the average, calculated by taking the sum of all numbers and dividing that by the count of numbers.
Mean:
The median of a list of numbers is the number that appears in the middle of the list, when sorted from least to greatest.
Median:
The mode of a list of numbers is the number that appears most often in the list.
Mode:
The range of a list of numbers is the difference between the largest and smallest numbers in the list.
Range:
The variance of a list of numbers measures how far the values are from the mean, on average.
Variance:
The standard deviation of a list of numbers is the square root of the variance.
Standard Deviation: