From 61f3449f2b850a5978c822c956e6ddff87a536fc Mon Sep 17 00:00:00 2001 From: Juan Moraga Date: Mon, 2 Jan 2023 17:46:37 -0300 Subject: [PATCH] Reto #1 - JavaScript --- .../javascript/moragacomar.js" | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 "Retos/Reto #1 - EL LENGUAJE HACKER [F\303\241cil]/javascript/moragacomar.js" diff --git "a/Retos/Reto #1 - EL LENGUAJE HACKER [F\303\241cil]/javascript/moragacomar.js" "b/Retos/Reto #1 - EL LENGUAJE HACKER [F\303\241cil]/javascript/moragacomar.js" new file mode 100644 index 0000000000..039eb6d08d --- /dev/null +++ "b/Retos/Reto #1 - EL LENGUAJE HACKER [F\303\241cil]/javascript/moragacomar.js" @@ -0,0 +1,10 @@ +const mensaje = "Hola" +const lenguaje = { + "a": "4", "b": "I3", "c": "[", "d": ")", "e": "3", "f": "|=", "g": "&", "h": "#", "i": "1", + "j": ",_|", "k": ">|", "l": "1", "m": "/\/\\", "n": "^/", "o": "0", "p": "|*", "q": "(_,)", + "r": "I2", "s": "5", "t": "7", "u": "(_)", "v": "\/", "w": "\/\/", "x": "><", "y": "j", + "z": "2" +} +const hacker = mensaje.toLowerCase().split("").map(e => lenguaje[e]) + +console.log(hacker.join("")) \ No newline at end of file