Supera todos los retos de programaciĂłn
Soluciona los Retos en codember.dev
- Haz un fork del proyecto
- agrega tu soluciĂłn al final del este readme
- agrega tu soluciĂłn en el formato
## Nombre de reto | [Nombre de usuario](github.com/usuario)
- No olvides agregar después de cada respuesta
---
- agrega tu soluciĂłn en el formato
- Crea tu pull request
CHALLENGE01 | darioesp
let users = `usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com
usr:@itziar age:19
loc:isle psw:aaa fll:222
eme:itzi@gmail.com
usr:@midudev eme:mi@gmail.com psw:123456 age:38 loc:bcn fll:82
fll:111 eme:yrfa@gmail.com usr:@codember
psw:123456 age:21 loc:World
usr:@giroz age:22 src:12 icon:avatar.png terminal:yes
pages:server
pages:blog
blog:about
loc:tierra psw:aaa fll:222
eme:giroz@gmail.com
psw:11133 loc:Canary
fll:333 usr:@pheralb
eme:pheralb@gmail.com`;
users = users.replaceAll("\n\n", ", ").replaceAll("\n",' ').split(',');
const userFilters = users.filter((user) => {
if(user.indexOf('age') > -1 && user.indexOf('psw') > -1 && user.indexOf('fll') > -1 && user.indexOf('eme') > -1 && user.indexOf('usr') > -1 && user.indexOf('loc') > -1) return user
})3
console.log(userFilters.length)
console.log(userFilters.at(-1))
CHALLENGE02 | darioesp
let messageDecrypt = "";
let message =
"11610497110107115 102111114 11210897121105110103 9911110010110998101114 11210810197115101 11510497114101";
let debounce;
const decryptMessage = (message) => {
const asciiLetterLowercase = {
a: 97,
b: 98,
c: 99,
d: 100,
e: 101,
f: 102,
g: 103,
h: 104,
i: 105,
j: 106,
k: 107,
l: 108,
m: 109,
n: 110,
o: 111,
p: 112,
q: 113,
r: 114,
s: 115,
t: 116,
u: 117,
v: 118,
w: 119,
x: 120,
y: 121,
z: 122
};
debounce = setInterval(() => {
Object.entries(asciiLetterLowercase).forEach((code, index) => {
const letter = code[0];
const ascii = code[1];
if (message.substring(0, 3) == ascii) {
messageDecrypt = `${messageDecrypt}${letter}`;
message = message.replace(ascii, "");
}
if (message.substring(0, 2) == ascii) {
messageDecrypt = `${messageDecrypt}${letter}`;
message = message.replace(ascii, "");
}
if (message.substring(0,1) === " ") {
messageDecrypt = `${messageDecrypt} `;
message = message.replace(" ", "");
}
});
if (message.length == 0) clearTimeout(debounce);
if (message.length == 0) console.log(`submit ${messageDecrypt}`);
}, 100);
};
decryptMessage(message);