title: Call forEach on a string in JavaScript
body: <p>I am not that experienced in JS so maybe this is a very naive question. 
  I tried to call </p>
  
  <pre><code>"".forEach((e, i) =&gt; {
      console.log(e)
  })
  </code></pre>
  
  <p>And I get an error saying that <code>forEach</code> is not a function for a string. Yet when I call:</p>
  
  <pre><code>Object.getOwnProperyNames("")
  </code></pre>
  
  <p>I can clearly see that <code>forEach()</code> is in the prototype of the string and of type <code>function</code>.</p>
  
  <p>Why can I not call it on a string?</p>