subject

Create a JavaScript function that meets the following requirements: •


Please give your function a descriptive name
o ( _two is not acceptable, and is only displayed here for illustration purposes)
Receives an array of numbers as a parameter, with each integer being a mark out of 100.
The function should return an array consisting of all the averages less than 50, followed by the average
of all the mark more than 50.
o both averages should be rounded to the nearest whole number.
o If there are no failing marks (< 50), then the average fail mark should be set to -1
o If there are no passing marks (< 50), then the average pass mark should be set to -1
Examples:
_two([63, 65, 33]))
➔ [33, 64]
_two([63, 62, 100, 100])) ➔ [-1, 81]
_two([33, 42, 20, 10]))
➔ [26, -1]​

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 18:00
What can a word user do with the customize ribbon dialog box? check all that apply. minimize the ribbon add a new tab to the ribbon remove a group from a tab add a group to a tab choose which styles appear choose which fonts appear choose tools to appear in a group
Answers: 1
question
Computers and Technology, 23.06.2019 21:30
To move a file or folder in microsoft windows, you can click and hold down the left mouse button while moving your mouse pointer to the location you want the file or folder to be, which is also known as.
Answers: 3
question
Computers and Technology, 24.06.2019 03:30
What is the purpose of a computer network needs assessment? to analyze which workers need more training to improve their performance to compare worker productivity to determine what steps employees can take to increase company revenue to evaluate how to move from the current status to the desired goal
Answers: 2
question
Computers and Technology, 24.06.2019 08:00
Arah has entered data about football players from team a and team b in a worksheet. she enters names of players from team a with details about each player in different columns of the worksheet. similarly, she enters details of all the players from team b. which option will her view the data for team a and team b in two separate sections after printing? a. page break view b. freeze pane view c. split screen view d. full screen view e. zoom out view
Answers: 1
You know the right answer?
Create a JavaScript function that meets the following requirements: •


Please giv...
Questions
question
Mathematics, 09.06.2020 20:57
question
Arts, 09.06.2020 20:57
question
English, 09.06.2020 20:57
question
English, 09.06.2020 20:57
Questions on the website: 13722363