ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 140 - Certified JavaScript Developer I discussion

Report
Export

Refer to the following array:

Let arr = [ 1,2, 3, 4, 5];

Which three options result in x evaluating as [3, 4, 5] ?

Choose 3 answers.

A.
Let x= arr.filter (( a) => (a<2));
Answers
A.
Let x= arr.filter (( a) => (a<2));
B.
Let x= arr.splice(2,3);
Answers
B.
Let x= arr.splice(2,3);
C.
Let x= arr.slice(2);
Answers
C.
Let x= arr.slice(2);
D.
Let x= arr.filter((a) => ( return a>2 ));
Answers
D.
Let x= arr.filter((a) => ( return a>2 ));
E.
Let x = arr.slice(2,3);
Answers
E.
Let x = arr.slice(2,3);
Suggested answer: B, C, D
asked 23/09/2024
Aiko Abrassart
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first