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);

newStr = str.replace(/D/g, '');
console.log('After character removed: ', newStr);
Source by appdividend.com #
 
PREVIOUS NEXT
Tagged: #remove #selected #characters #string #javascript
ADD COMMENT
Topic
Name
7+1 =