MCQ
What is the purpose of the `filter()` function?
JavaScript
A Creates a new array with elements that pass a test
B Filters out elements and modifies the original array
C Maps elements to new values
D Reduces array to a single value
Explanation

filter() creates a new array with elements that satisfy a provided condition.