Q. What does the filter() method do?
β
Correct Answer: (A)
Returns a new array with elements that pass a test
Explanation: filter() applies a test to each element and returns matching elements.