1var oldStr ="Hello";
2var newStr = oldStr.substring(1); //remove first character "ello"
3
1let str = 'ass';
2
3str = str.split(''); // (3) ["a", "s", "s"]
4str.shift(); // (2) ["s", "s"]
5str = str.join(''); // "ss"
1let str = 's';
2
3str = (function f(s) { // don't use on large strings
4 return s.length<=1?'':f(s.slice(0, -1))+s[s.length-1]
5 })(str); // ""