javascript remove if first cvharacter code example
Example 1: delete first character javascript
let str = 'Hello';
str = str.slice(1);
console.log(str);
/*
Output: ello
*/
Example 2: javascript delete first character in string
var oldStr ="Hello";
var newStr = oldStr.substring(1); //remove first character "ello"