Create a function called shortcut
to remove the lowercase vowels
(a
, e
, i
, o
, u
) in a given string.
"hello" --> "hll"
"codewars" --> "cdwrs"
"goodbye" --> "gdby"
"HELLO" --> "HELLO"
- don't worry about uppercase vowels
y
is not considered a vowel for this kata
def shortcut(s)
s.delete('aeiou')
end
def shortcut(s)
s.gsub(/[aeiou]/, '')
end