title: JavaScript, Arrow functions
body: <p>I am struggling to understand arrow functions on this example:</p>
  <pre><code>const printArray = function (array) {
    array.forEach(function (element) {
      console.log(element);
    });
  };
  </code></pre>
  <p>I've been trying sth like:</p>
  <pre><code>const printArray = array =&gt; {
    array.forEach = element =&gt; {
      console.log(element)
    }
  }
  </code></pre>
  <p>However, it wouldn't work.
  Can someone clarify me on the example above?</p>