Last active
August 30, 2020 16:01
-
-
Save ashwinkumar2438/7518a5c2dfad5a490c2aba52a5956ecf 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" | |
let namewithoutspaces=name.split(" ").join(""); | |
console.log(namewithoutspaces); // "RegExp" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment