ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 185 - Certified JavaScript Developer I discussion

Report
Export

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);
Answers
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 ));
Answers
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));
Answers
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 );
Answers
D.
let arrl = arr.filterBy((val) => val < 10 ).aapBy<(num) -> num = ..25 );
Suggested answer: C
asked 23/09/2024
Myratgeldi Bekdurdyyev
46 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first