HEAD
Create a function called shortcut to remove the lowercase vowels (a, e, i, o, u ) in a given string. Examples
"hello" --> "hll" "codewars" --> "cdwrs" "goodbye" --> "gdby" "HELLO" --> "HELLO"
function shortcut (string) {
return string.replace(/[aeiou]/ig,'');
}
Try it yourself - CodeWars
Create a function called shortcut to remove the lowercase vowels (a, e, i, o, u ) in a given string. Examples
"hello" --> "hll" "codewars" --> "cdwrs" "goodbye" --> "gdby" "HELLO" --> "HELLO"
function shortcut (string) {
return string.replace(/[aeiou]/ig,'');
}
Try it yourself - CodeWars