Question: Write a JavaScript function named averageBig with this header function averageBig(list) { The parameter list is an array that contains numbers. The length of


Write a JavaScript function named averageBig with this header function averageBig(list) {

Write a JavaScript function named averageBig with this header function averageBig(list) { The parameter list is an array that contains numbers. The length of the list array will vary. Your function must compute the average of all the numbers stored in the array that are larger than 1000. For example, if your function were called like this: var list = [70, 1010, 950, 2014, 6]; var score = averageBig(list); your function would return the number 1512. If none of the numbers in the array are larger than 1000, your function must return 0 (zero). Test Cases Parameter list [70, 1010, 950, 2014, 6] Return 1512 [-72.3, 3000, 873, 2312, 68, 7501.3] 4271.1 [70, 950, 671,6] 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!