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 20:00
2.)how does a graphical user interface (gui) on a touchscreen interface differ from a gui on a desktop or laptop? a.)a finger or stylus is used instead of a pointer. b.) a magic wand is used instead of a pointer. c.)users speak commands instead of using a pointer. d.)users visualize commands instead of using a pointer.
Answers: 1
question
Computers and Technology, 23.06.2019 00:00
What season was better from fortnite?
Answers: 2
question
Computers and Technology, 23.06.2019 01:00
Let r be a robotic arm with a fixed base and seven links. the last joint of r is a prismatic joint, the other ones are revolute joints. give a set of parameters that determines a placement of r. what is the dimension of the configuration space resulting from your choice of parameters?
Answers: 3
question
Computers and Technology, 24.06.2019 06:30
Me and category do i put them in because this is science
Answers: 1
You know the right answer?
Create a JavaScript function that meets the following requirements: •


Please giv...
Questions
question
Mathematics, 18.11.2019 05:31
question
Biology, 18.11.2019 05:31
question
History, 18.11.2019 05:31
question
Mathematics, 18.11.2019 05:31