1let str = 'Hello';
2
3str = str.slice(1);
4console.log(str);
5
6/*
7 Output: ello
8*/
9
1var oldStr ="Hello";
2var newStr = oldStr.substring(1); //remove first character "ello"
3
1let str = 'Hello';
2
3str = str.substring(1);
4console.log(str);
5
6/*
7 Output: ello
8*/
9