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, 21.06.2019 22:00
Which is produced by the endocrine system to control how cells and organs function
Answers: 2
question
Computers and Technology, 22.06.2019 01:00
How can a broadcast station be received through cable and satellite systems?
Answers: 1
question
Computers and Technology, 23.06.2019 01:50
Create a class named majors that includes an enumeration for the six majors offered by a college as follows: acc, chem, cis, eng, his, phys. display the enumeration values for the user, then prompt the user to enter a major. display the college division in which the major falls. acc and cis are in the business division, chem and phys are in the science division, and eng and his are in the humanities division. save the file as majors.java.
Answers: 2
question
Computers and Technology, 23.06.2019 14:00
What is html ? give a small description about html
Answers: 2
You know the right answer?
Create a JavaScript function that meets the following requirements: •


Please giv...
Questions
question
Business, 10.11.2020 14:00
question
English, 10.11.2020 14:00
question
Mathematics, 10.11.2020 14:00
Questions on the website: 13722367