typescript remove first characters from string code example
Example 1: trim first character in 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"