remove from beginning of string javascript code example
Example 1: javascript delete first character in string
var oldStr ="Hello";
var newStr = oldStr.substring(1);
Example 2: remove first char javascript
let str = 'Hello';
str = str.substring(1);
console.log(str);
Example 3: javascript remove characters from beginning of string
"www.testwww.com".replace("www.", "");
"www.testwww.com".slice(4);
"www.testwww.com".replace(/^(www\.)/,"");
Example 4: delate char betwen index js
S = S.replace(S.substring(bindex, eindex), "");
var result = S.split("");
result.splice(bindex, eindex - bindex);
S = result.join("");