Code Lab

Remove vowels

EasyStrings5 min

Write a function removeVowels(text) that returns the string without the vowels a, e, i, o, u. Capital vowels go too. Every other character stays where it was.

Examples

removeVowels('automation')

Returns 'tmtn'

removeVowels('Hello World')

Returns 'Hll Wrld'

The space stays.
removeVowels('QA')

Returns 'Q'

The capital A goes too.

Asked at EQ Technologic · Source

Loading the editor...
  1. InputremoveVowels('automation')
    Expected'tmtn'
  2. InputremoveVowels('Hello World')
    Expected'Hll Wrld'
  3. InputremoveVowels('QA')
    Expected'Q'

Hidden tests run on Submit.