title: how can i remove chars between indexes in a javascript string
body: <p>i have the following:  </p>
  
  <pre><code>var S="hi how are you";
  var bindex = 2;
  var eindex = 6;
  </code></pre>
  
  <p>how can i remove all the chars from S that reside between bindex and eindex?<br>
  therefore S will be "hi are you"</p>