Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 56 Topic 6 Discussion

Salesforce Certified JavaScript Developer (JS-Dev-101) JavaScript-Developer-I Question # 56 Topic 6 Discussion

JavaScript-Developer-I Exam Topic 6 Question 56 Discussion:
Question #: 56
Topic #: 6

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 );


Get Premium JavaScript-Developer-I Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.