Exam4Training

How should the developer implement the request?

A developer has the following array of hourly wages:

Let arr = (8, 5, 9, 75, 11, 25, 7, 75, 13, 25);

For workers making less than $10 an hour rate should be multiple by 1.25 and returned in a new array.

How should the developer implement the request?
A . let arrl = arr.filter((val) => val < 10).map((num) -> num = 1.25);
B. let arrl = arr .rr.acArray ((val) => ( val < 10 )) ,map((num) => { num * 1.25 ));
C. let arrl = arr-map((num) => { return ran * 1.25 }).filter((val) -> { return val < 10));
D. let arrl = arr.filterBy((val) => val < 10 ).aapBy<(num) -> num = ..25 );

Answer: C

Exit mobile version