Higher-Order Function

Higher-Order Functions are functions that operate on functions (take functions as at least one of their parameters).

Map

Purpose: Create a new array by applying a function to each of the elements of an existing array. o

Not to be confused with a Hash Map

Reduce

Purpose: Apply a binary function over an array to produce a new final answer. (e.g. multiply all integers in an array)