ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 9 - Certified JavaScript Developer I discussion

Report
Export

A developer has the following array of student test grades:

Let arr = [ 7, 8, 5, 8, 9 ];

The Teacher wants to double each score and then see an array of the students who scored more than 15 points.

How should the developer implement the request?

A.
Let arr1 = arr.filter(( val) => ( return val > 15 )) .map (( num) => ( return num *2 ))
Answers
A.
Let arr1 = arr.filter(( val) => ( return val > 15 )) .map (( num) => ( return num *2 ))
B.
Let arr1 = arr.mapBy (( num) => ( return num *2 )) .filterBy (( val ) => return val > 15 )) ;
Answers
B.
Let arr1 = arr.mapBy (( num) => ( return num *2 )) .filterBy (( val ) => return val > 15 )) ;
C.
Let arr1 = arr.map((num) => num*2). Filter (( val) => val > 15);
Answers
C.
Let arr1 = arr.map((num) => num*2). Filter (( val) => val > 15);
D.
Let arr1 = arr.map((num) => ( num *2)).filterBy((val) => ( val >15 ));
Answers
D.
Let arr1 = arr.map((num) => ( num *2)).filterBy((val) => ( val >15 ));
Suggested answer: C
asked 23/09/2024
Andrea Trivisonno
31 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first