Q. Which method is used to filter elements in an array?
β
Correct Answer: (A)
filter()
Explanation: The filter() method creates a new array with elements that pass a test.