Quiz

JavaScript Array Methods Quiz

8 questions on array methods: push, map, filter, reduce, and more. Find out how confidently you use them.

8
questions
~4 min
to complete
instant result
Question 1 of 8
Which method adds an element to the end of an array?
Question 2 of 8
What does [1,2,3].map(n => n * 2) return?
Question 3 of 8
Which method returns a new array with only the elements that pass a test?
Question 4 of 8
What does arr.pop() do?
Question 5 of 8
How do you check if a variable is an array?
Question 6 of 8
What does [1,2,3].reduce((sum, n) => sum + n, 0) do?
Question 7 of 8
Which method finds the first element that satisfies a condition?
Question 8 of 8
What does arr.splice(1, 2) do?
0/8