JavaScript card reviewmedium
What is the difference between map(), filter(), and reduce()?
map() transforms each element in an array and returns a new array. filter() returns a new array containing elements that satisfy a condition. reduce() processes all elements and combines them into a single value such as a sum, object, or array. These methods are widely used in modern JavaScript development for data manipulation.