why JS for loop doesn't work if i put return keyword? : <p>when i put the <strong>return</strong> keyword like this example:</p>

<pre><code>for (let z = 0; z &lt; 5; z++) {
   return console.log('one');
  }
//the result is : 'one'
</code></pre>

<p>but when i remove the <strong>return</strong> keyword like this example:</p>

<pre><code>for (let z = 0; z &lt; 5; z++) {
   console.log('one');
  }
//the result is : 'one', 'one', 'one', 'one', 'one'
</code></pre>

<p>the loop works and return <strong><em>five 'one'</em></strong>
what's the reason for that ?</p>
