fork(1) download
  1. function temp(str) {
  2. const vowelMap = {a: "tiva",e: "llia",i: "mus",o: "phylum",u: "rea"};
  3. return str.split('').map(c => !vowelMap.hasOwnProperty(c.toLowerCase()) ? c:c+vowelMap[c.toLowerCase()]).join('');
  4. }
  5.  
  6.  
  7. const x = temp("I love water!");
  8. console.log(x);
Success #stdin #stdout 0.02s 17628KB
stdin
Standard input is empty
stdout
Imus lophylumvellia wativatelliar!