title: Remove all white space from string JavaScript
body: <p>How can I remove all the white space from a given string.</p>
  
  <p>Say:</p>
  
  <pre><code>var str = "  abc de fog   ";
  str.trim(); 
  </code></pre>
  
  <p>Gives <code>abc de fog</code> <strong>AND NOT</strong> <code>abcdefog</code>, which I want.</p>
  
  <p>How can I get all the white space removed using JavaScript?</p>