Question: 5 . countAboveAverage function a ) Write a function named countAboveAverage that accepts an array of numbers and returns the count of how many values
countAboveAverage function
a Write a function named countAboveAverage that accepts an array of numbers and returns the count of how many values are more than the average of the same list of numbers. Your countAboveAverage function must call the arrayAverage function you wrote in the previous exercise.
b Run the test shown below in the console to verify your function works properly.
Test
let values ; console.logcountAboveAveragevalues; expect
c Add code in your JavaScript file to call the countAboveAverage function with an argument of and displays what it returns in the textarea of the web page by concatenating to the textarea value.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
