alternative to for loop
<p>How do I use .forEach instead of a for loop?   </p>

<pre><code>'use strict';

var score = (function(){
        function updateScore() {
            for(var i = 0; i &lt; arguments.length; i++) {
                this.score += arguments[i];
            }// I want to use .forEach here instead of for loop.
            return this.score;
        }

        return {
            update: updateScore
        }
})();

var soccer = {
    name: 'Soccer',
    score: 0
}

score.update.apply(soccer, [1,2,3])

console.log(soccer.score)
</code></pre>

<p>this will log 6.</p>

<p>I tried this </p>

<pre><code>function updateScore() {
  arguments.forEach((args, i) =&gt; {
    this.score += args[i];
  };
  return this.score;
}; 
</code></pre>

<p>Error log: arguments.forEach is not a function</p>