how to replace first and last character of string in javascript code example
Example: how to replace first and last character of string in javascript
const removeChar = (str) => str.slice(1, -1);
const removeChar = (str) => str.slice(1, -1);