Answer the question
In order to leave comments, you need to log in
How to remove dots, commas, spaces and % from a string?
I use this code to remove spaces from a string. Tell me how to expand it so that it removes
not only spaces, but also periods, commas, and the % symbol?let str = str1.replace(/\s/g, '');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question