let str = 'Hello';
str = str.slice(1);
console.log(str);
/*
Output: ello
*/
var yourString = "/installers/services/";
var result = yourString.slice(1,-1);
const removeChar = (str) => str.slice(1, -1);
let str = 'Hello';
str = str.substring(1);
console.log(str);
/*
Output: ello
*/
a = [1,2,3,4]
b = a.slice(1,-1);
// best implementation
const removeChar = (str) => str.slice(1, -1);
function newWord(str) {
return str.substring(1);
}