Question: what is the difference between map reduce and filter functions in javascript?
Answer: map creates a new array by transforming every element in an array, individually. filter creates a new array by removing elements that don't belong. reduce , on the other hand, takes all of the elements in an array, and reduces them into a single value.