Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const removeChar = (str) => str.substring(1, str.length - 1);
- console.log(removeChar("eloquent"), "loquen");
- console.log(removeChar("country"), "ountr");
- console.log(removeChar("person"), "erso");
- console.log(removeChar("place"), "lac");
Add Comment
Please, Sign In to add comment