Remover todas as vogais de uma string

Published by romancoding in

Crie uma função que recebe uma string e retorna uma nova string sem nenhuma vogal.

Exemplos

removeVowels("I have never seen a thin person drinking Diet Coke.")
➞ " hv nvr sn  thn prsn drnkng Dt Ck."

removeVowels("We're gonna build a wall!")
➞ "W'r gnn bld  wll!"

removeVowels("Happy Thanksgiving to all--even the haters and losers!")
➞ "Hppy Thnksgvng t ll--vn th htrs nd lsrs!"

Notas

  • "y" não é considerada uma vogal.
  • Espere uma string válida em todos os casos de teste.