string remove first 2 characters an last one char js code example
Example 1: remove first 3 characters from string javascript
var string = "abcd";
console.log(string.substring(3)); //"d"
Example 2: remove first and last character from string javascript
const removeChar = (str) => str.slice(1, -1);