Created
August 30, 2020 16:04
-
-
Save ashwinkumar2438/1f117636fd015c2db049a01df9237a21 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var name=" R e g E x p "; | |
var namewithoutspaces1=name.replace(" ",""); // "R e g E x p " | |
var namewithoutspaces2=name.replace(/\s/g,"");// "RegExp" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment