title: How to remove spaces from a string using JavaScript?
body: <p>How to remove spaces in a string? For instance:</p>
  
  <p><strong>Input:</strong></p>
  
  <pre><code>'/var/www/site/Brand new document.docx'
  </code></pre>
  
  <p><strong>Output:</strong></p>
  
  <pre><code>'/var/www/site/Brandnewdocument.docx'
  </code></pre>