Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove first and last character javascript

// best implementation
const removeChar = (str) => str.slice(1, -1);
 
PREVIOUS NEXT
Tagged: #remove #character #javascript
ADD COMMENT
Topic
Name
7+1 =