Created
June 9, 2018 09:12
-
-
Save navidanindya/672c0e53d77b108ad8eba9f078f1a7b7 to your computer and use it in GitHub Desktop.
Strip vowels from a string using JavaScript. [ Link: https://repl.it/@nealtheguitaris/TightLawngreenTrapezoid ]
This file contains 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
function disemvowel(str) { | |
return str.replace(/[aeiou]/ig,''); | |
} | |
console.log(disemvowel("Hello World!")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment