Array Reduce In Javascript Example Functions Of Behavior