How to Add values and loop through array in JavaScript - Tutorialsmade.com