SyntaxFix
Write A Post
Hire A Developer
Questions
Another super clear way of doing this could be as follows:
let modifiedString = originalString .split('').reverse().join('') .replace('_', '') .split('').reverse().join('')