title: Question about forEach and break/return in JavaScript
body: <p>I am new to JS and I have a question about the return statement.
  Why do I have to use return false to get out a forEach loop in JS?</p>
  
  <p>This here works fine:</p>
  
  <pre><code>let answer;
      let found = false;
      for (let i = 0; i &lt; database.length; i++){
          let p = database[i];
          if (p.id === person.id){
              database[i] = person; //Overwrite if found
              answer = 'Person information changed.';
              found = true;
              break;
          }
      }
  </code></pre>
  
  <p>But this on the other hand doesn't work:</p>
  
  <pre><code>database.forEach(element =&gt; {
          if(element.email == req.body.email || element.nachname == req.body.nachname || element.vorname == req.body.vorname)
              res.send(element);
              break;
      });
  </code></pre>
  
  <p>I got this error -> SyntaxError: Illegal break statement.</p>
  
  <p>Is there any difference between those loops?
  I know you can break a loop like for, while and switch loop but what makes forEach different?</p>
  
  <p>Thank you!</p>