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