Excluir JavaScript do primeiro personagem
let str = 'Hello';
str = str.slice(1);
console.log(str);
/*
Output: ello
*/
Important Ibex
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
*/
// best implementation
const removeChar = (str) => str.slice(1, -1);
function newWord(str) {
return str.substring(1);
}