Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to remove selected characters from a string in javascript

// app.js

str = 'AppDividend';
console.log('Original String: ', str);

removeFirstChar = str.slice(1);
console.log('Removing the first character', removeFirstChar);

removeLastChar = str.slice(0, str.length - 1);
console.log('Removing the last character: ', removeLastChar);
Source by appdividend.com #
 
PREVIOUS NEXT
Tagged: #remove #selected #characters #string #javascript
ADD COMMENT
Topic
Name
6+7 =