AlfatArdiansa

Codewars w Sandhika 7

Oct 31st, 2020
1,778
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const removeChar = (str) => str.substring(1, str.length - 1);
  2.  
  3. console.log(removeChar("eloquent"), "loquen");
  4. console.log(removeChar("country"), "ountr");
  5. console.log(removeChar("person"), "erso");
  6. console.log(removeChar("place"), "lac");
  7.  
Add Comment
Please, Sign In to add comment