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 => c in vowelMap ? c+vowelMap[c]:c).join('');
  4. }
  5.  
  6.  
  7. const x = temp("i love water!");
  8. console.log(x);
Success #stdin #stdout 0.03s 17540KB
stdin
Standard input is empty
stdout
imus lophylumvellia wativatelliar!