i have the following:
var S=\"hi how are you\"; var bindex = 2; var eindex = 6;
how can i remove all the chars from S that reside between
With String.slice:
S = S.slice(0, bindex) + S.slice(eindex);