List of questions
Related questions
Question 182 - Certified JavaScript Developer I discussion
Refer to the following array:
Let arr = [1, 2, 3, 4, 5];
Which three options result in x evaluating as [1, 2]?
Choose 3 answer
A.
let x = arr. slice (2);
B.
let x = arr. slice (0, 2);
C.
let x arr.filter((a) => (return a <= 2 });
D.
let x = arr.filter ((a) => 2 }) ;
E.
let x =arr.splice(0, 2);
Your answer:
0 comments
Sorted by
Leave a comment first