Untitled
user_1229398019
plain_text
2 years ago
291 B
1
Indexable
Never
var chars = {'a':'ai','e':'enter','i':'imes','o':'ober','u':'ufat'}; function encriptar(){ var e = document.getElementById("textoIngresado").value; var hh = e.replace(/[aeiou]/g, m => chars[m]); console.log(hh); document.getElementById("textoResultado").value = hh; }