title: How do I replace multiple words from string in nodejs?
body: <p>I would like to replace multiple words from below string:</p>
  
  <blockquote>
    <p>\njava developer\n</p>
  </blockquote>
  
  <p>How do I replace \n from start and \n from last from above string?
  I used</p>
  
  <blockquote>
    <p>replace('\n', '')</p>
  </blockquote>
  
  <p>but it replace first \n only.</p>