MCQ
What is the purpose of the `map()` function?
JavaScript
A Creates a new array with the results of calling a function on every element
B Modifies the original array
C Filters elements based on a condition
D Reduces an array to a single value
Explanation

map() creates a new array by applying a function to each element.