Reduce is used somewhat similar to ‘map’ Zero is set as the initial value and then it goes through the array and adds each value (in this example the currentScore) to the totalScore which becomes the new ‘previousScore’. Here’s a … Continue reading
About Me

Mark Wong is a front end developer with 10+ years experience. Most of his knowledge of HTML5, CSS and jQuery is self taught.
Follow ProjectMW Games
Want to write about ProjectMW Games? Check out our Press Kit