// app.js str = 'AppDividend'; console.log('Original String: ', str); newStr = str.replace(/D/g, ''); console.log('After character removed: ', newStr);