Created
January 20, 2017 11:48
-
-
Save bflannery/05ae4d9900f6ac6941ddd6eb3f0cfcfd to your computer and use it in GitHub Desktop.
Remove vowels from the string
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
// Remove vowels from the string | |
function disemvowel(str) { | |
return str.replace(/[aeiou]/gi, ''); | |
} | |
console.log(disemvowel("This website is for losers LOL!")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment