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 19:50
Which feature is selected to practice and save the timing of a presentation
Answers: 1
question
Computers and Technology, 24.06.2019 01:00
Answer these and get 40 points and brainliest
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
How do you share someone else’s tweet with your own twitter followers?
Answers: 1
question
Computers and Technology, 24.06.2019 08:30
Intellectual property rights are exclusive rights that protect both the created and the creation. ipr offers exclusively what benefits to the person or people covered by it
Answers: 3
You know the right answer?
Create a JavaScript function that meets the following requirements: •


Please giv...
Questions
question
Mathematics, 01.09.2021 17:40
question
History, 01.09.2021 17:40
question
Mathematics, 01.09.2021 17:40
question
Arts, 01.09.2021 17:40
question
Mathematics, 01.09.2021 17:40
question
Mathematics, 01.09.2021 17:40
question
Social Studies, 01.09.2021 17:40
question
English, 01.09.2021 17:40
Questions on the website: 13722360