Como substituir o primeiro e o último caractere da string em javascript

const removeChar = (str) => str.slice(1, -1);
Fylls