Untitled
user_1229398019
plain_text
3 years ago
291 B
3
Indexable
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; }
Editor is loading...