title: Replace multiple semicolon to single one in JavaScript
body: <p>I try to remove multiple semicolon (;) replace to single semicolon  (;) in javascrpt.</p>
  
  <p>code:</p>
  
  <pre><code>var test ="test1;;test2;;;test3;;;;test4;;;;test5;;;;;test6;;;;;;test7;;;;;;;test8;;;;;;;;test9"
  test.replace(";;",";")
  </code></pre>
  
  <p>But not get proper output.(must use replace)
  if any solution</p>
  
  <p>I need output like :</p>
  
  <pre><code>test1;test2;test3;test4;test5;test6;test7;test8;test9
  </code></pre>