Code Lab

Modo entrevista. Cronômetro de 5 min, sem dicas e sem autocompletar

Remove vowels

FácilStrings5 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.

Exemplos

removeVowels('automation')

Retorna 'tmtn'

removeVowels('Hello World')

Retorna 'Hll Wrld'

The space stays.
removeVowels('QA')

Retorna 'Q'

The capital A goes too.

Cobrada em EQ Technologic · Fonte

Carregando o editor...
  1. EntradaremoveVowels('automation')
    Esperado'tmtn'
  2. EntradaremoveVowels('Hello World')
    Esperado'Hll Wrld'
  3. EntradaremoveVowels('QA')
    Esperado'Q'

Os testes ocultos rodam no envio