Pregunta de entrevista de PeopleStrong Technologies

What does Reduce function do in Javascript?