how to delete first occured character in string javascript code example
Example 1: javascript remove first character from string
let str = " hello";
str = str.substring(1);
Example 2: trim first character in javascript
let str = 'Hello';
str = str.slice(1);
console.log(str);
/*
Output: ello
*/