SyntaxFix
Write A Post
Hire A Developer
Questions
You can do the following fix for removing Whitespaces with trim and @ symbol:
var result = string.replace(/ /g, ''); // Remove whitespaces with trimmed value var result = string.replace(/ /g, '@'); // Remove whitespaces with *@* symbol