Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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) { 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Elements Of Chemical Reaction Engineering

Authors: H. Fogler

6th Edition

013548622X, 978-0135486221

More Books

Students also viewed these Programming questions

Question

What is job rotation ?

Answered: 1 week ago