https://github.com/marcode24/adventjs-solutions
🎄 This repository contains my solutions to the AdventJS challenges, created by @midudev.
https://github.com/marcode24/adventjs-solutions
adventjs adventjs-2021 adventjs-2022 adventjs-2023 adventjs-2024 adventjs2022 adventjs2023 adventjs2024 challenge christmas eslint javascript solutions
Last synced: 6 months ago
JSON representation
🎄 This repository contains my solutions to the AdventJS challenges, created by @midudev.
- Host: GitHub
- URL: https://github.com/marcode24/adventjs-solutions
- Owner: marcode24
- License: mit
- Created: 2022-12-27T23:07:42.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-28T08:30:23.000Z (9 months ago)
- Last Synced: 2025-03-26T03:41:31.529Z (7 months ago)
- Topics: adventjs, adventjs-2021, adventjs-2022, adventjs-2023, adventjs-2024, adventjs2022, adventjs2023, adventjs2024, challenge, christmas, eslint, javascript, solutions
- Language: JavaScript
- Homepage: https://adventjs.dev
- Size: 393 KB
- Stars: 27
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
🎄 AdventJS Solutions






## ℹ️ About
This repository contains my solutions to the [AdventJS](https://adventjs.dev/) challenges. Built by [@midudev](https://twitter.com/midudev)
## 📥 Installation & Usage
```bash
# Clone the repository
git clone https://github.com/marcode24/adventjs-solutions# Go into the repository
cd adventjs-solutions# Install dependencies
npm install# Run tests
npm run test# Run specific year tests
npm run test:2021
# or
npm run test:2022
# or
npm run test:2023
# or
npm run test:2024# Run specific test
npm run test 'year'/'challenge'/index.test.js```
## 🎯 2024 Challenges
Show / Hide
| # | Challenge | Difficulty | My Solution | My Explanation | My Score |
| :-: | ------------------------------------------------------------------------------------------- | :--------: | :------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------:| :----------- |
| 01 | [🎁 ¡Primer regalo repetido!](https://adventjs.dev/es/challenges/2024/1) | 🟢 | [here](./2024/01-primer-regalo-repetido/index.js) | [here](./2024/01-primer-regalo-repetido/README.md#mi-solución-explicada) | ⭐⭐⭐⭐⭐ |
| 02 | [🖼️ Enmarcando nombres](https://adventjs.dev/es/challenges/2024/2) | 🟢 | [here](./2024/02-enmarcando-nombres/index.js) | [here](./2024/02-enmarcando-nombres/README.md#mi-solución-explicada) | ⭐⭐⭐⭐⭐ |
| 03 | [🏗️ Organizando el inventario](https://adventjs.dev/es/challenges/2024/3) | 🟢 | [here](./2024/03-organizando-el-inventario/index.js) | [here](./2024/03-organizando-el-inventario/README.md#mi-solución-explicada) | ⭐⭐⭐⭐⭐ |
| 04 | [🎄 Decorando el árbol de Navidad](https://adventjs.dev/es/challenges/2024/4) | 🟡 | [here](./2024/04-decorando-el-arbol-de-navidad/index.js) | [here](./2024/04-decorando-el-arbol-de-navidad/README.md#mi-solución-explicada) | ⭐⭐⭐⭐⭐ |
| 05 | [👢 Emparejando botas](https://adventjs.dev/es/challenges/2024/5) | 🟢 | [here](./2024/05-emparejando-botas/index.js) | [here](./2024/05-emparejando-botas/README.md#mi-solución-explicada) | ⭐⭐⭐⭐⭐ |
| 06 | [🎁 ¿Regalo dentro de la caja?](https://adventjs.dev/es/challenges/2024/6) | 🟡 | [here](./2024/06-regalo-dentro-de-la-caja/index.js) | [here](./2024/06-regalo-dentro-de-la-caja/README.md#mi-solución-explicada) | ⭐⭐⭐⭐⭐ |
| 07 | [🎅🏼 El ataque del Grinch](https://adventjs.dev/es/challenges/2024/7) | 🟡 | [here](./2024/07-el-ataque-del-grinch/index.js) | [here](./2024/07-el-ataque-del-grinch/README.md#mi-solución-explicada) | ⭐⭐⭐⭐⭐ |
| 08 | [🦌 La carrera de renos](https://adventjs.dev/es/challenges/2024/8) | 🟢 | [here](./2024/08-la-carrera-de-renos/index.js) | [here](./2024/08-la-carrera-de-renos/README.md#mi-solución-explicada) | ⭐⭐⭐⭐⭐ |
| 09 | [🚂 El tren mágico](https://adventjs.dev/es/challenges/2024/9) | 🟡 | [here](./2024/09-el-tren-magico/index.js) | [here](./2024/09-el-tren-magico/README.md#mi-solución-explicada) | ⭐⭐⭐⭐⭐ |
| 10 | [🧑💻 El ensamblador élfico](https://adventjs.dev/es/challenges/2024/10) | 🟡 | [here](./2024/10-el-ensamblador-elfico/index.js) | [here](./2024/10-el-ensamblador-elfico/README.md#mi-solución-explicada) | ⭐⭐⭐⭐⭐ |
| 11 | [📂 Nombres de archivos codificados](https://adventjs.dev/es/challenges/2024/11) | 🟢 | [here](./2024/11-nombres-de-archivos-codificados/index.js) | [here](./2024/11-nombres-de-archivos-codificados/README.md#mi-solución-explicada) | ⭐⭐⭐⭐⭐ |
| 12 | [🎄 ¿Cuánto cuesta el árbol?](https://adventjs.dev/es/challenges/2024/12) | 🟢 | [here](./2024/12-cuanto-cuesta-el-arbol/index.js) | [here](./2024/12-cuanto-cuesta-el-arbol/README.md#mi-solución-explicada) | ⭐⭐⭐⭐⭐ |
| 13 | [🤖 ¿El robot está de vuelta?](https://adventjs.dev/es/challenges/2024/13) | 🔴 | [here](./2024/13-el-robot-esta-de-vuelta/index.js) | [here](./2024/13-el-robot-esta-de-vuelta/README.md#mi-solución-explicada) | ⭐⭐⭐⭐⭐ |
| 14 | [🦌 Acomodando los renos](https://adventjs.dev/es/challenges/2024/14) | 🟢 | [here](./2024/14-acomodando-los-renos/index.js) | [here](./2024/14-acomodando-los-renos/README.md#mi-solución-explicada) | ⭐⭐⭐⭐⭐ |
| 15 | [✏️ Dibujando tablas](https://adventjs.dev/es/challenges/2024/15) | 🟢 | [here](./2024/15-dibujando-tablas/index.js) | [here](./2024/15-dibujando-tablas/README.md#mi-solución-explicada) | ⭐⭐⭐⭐⭐ |
| 16 | [❄️ Limpiando la nieve del camino](https://adventjs.dev/es/challenges/2024/16) | 🟢 | [here](./2024/16-limpiando-la-nieve-del-camino/index.js) | [here](./2024/16-limpiando-la-nieve-del-camino/README.md#mi-solución-explicada) | ⭐⭐⭐⭐⭐ |
| 17 | [💣 Busca las bombas del Grinch](https://adventjs.dev/es/challenges/2024/17) | 🟡 | [here](./2024/17-busca-las-bombas-del-grinch/index.js) | [here](./2024/17-busca-las-bombas-del-grinch/README.md#mi-solución-explicada) | ⭐⭐⭐⭐⭐ |
| 18 | [💾 La agenda mágica de santa](https://adventjs.dev/es/challenges/2024/18) | 🔴 | [here](./2024/18-la-agenda-magica-de-santa/index.js) | [here](./2024/18-la-agenda-magica-de-santa/README.md#mi-solución-explicada) | ⭐⭐⭐⭐⭐ |
| 19 | [📦 Apila cajas mágicas para repartir regalos](https://adventjs.dev/es/challenges/2024/19) | 🔴 | [here](./2024/19-apila-cajas-magicas-para-repartir-regalos/index.js) | [here](./2024/19-apila-cajas-magicas-para-repartir-regalos/README.md#mi-solución-explicada) | ⭐⭐⭐⭐⭐ |
| 20 | [🎁 Encuentra los regalos faltantes y duplicados](https://adventjs.dev/es/challenges/2024/20) | 🟢 | [here](./2024/20-encuentra-los-regalos-faltantes-y-duplicados/index.js) | [here](./2024/20-encuentra-los-regalos-faltantes-y-duplicados/README.md#mi-solución-explicada) | ⭐⭐⭐⭐⭐ |
| 21 | [🎄 Calcula la altura del árbol de Navidad](https://adventjs.dev/es/challenges/2024/21) | 🟢 | [here](./2024/21-calcula-la-altura-del-arbol-de-navidad/index.js) | [here](./2024/21-calcula-la-altura-del-arbol-de-navidad/README.md#mi-solución-explicada) | ⭐⭐⭐⭐⭐ |
| 22 | [🎁 Genera combinaciones de regalos](https://adventjs.dev/es/challenges/2024/22) | 🟡 | [here](./2024/22-genera-combinaciones-de-regalos/index.js) | [here](./2024/22-genera-combinaciones-de-regalos/README.md#mi-solución-explicada) | ⭐⭐⭐⭐⭐ |
| 23 | [🔢 Encuentra los números perdidos](https://adventjs.dev/es/challenges/2024/23) | 🟢 | [here](./2024/23-encuentra-los-numeros-perdidos/index.js) | [here](./2024/23-encuentra-los-numeros-perdidos/README.md#mi-solución-explicada) | ⭐⭐⭐⭐⭐ |
| 24 | [🪞 Verifica si los árboles son espejos mágicos](https://adventjs.dev/es/challenges/2024/24) | 🟡 | [here](./2024/24-verifica-si-los-arboles-son-espejos-magicos/index.js) | [here](./2024/24-verifica-si-los-arboles-son-espejos-magicos/README.md#mi-solución-explicada) | ⭐⭐⭐⭐⭐ |
| 25 | [🧙♂️ Ejecuta el lenguaje mágico](https://adventjs.dev/es/challenges/2024/25) | 🟡 | [here](./2024/25-ejecuta-el-lenguaje-magico/index.js) | [here](./2024/25-ejecuta-el-lenguaje-magico/README.md#mi-solución-explicada) | ⭐⭐⭐⭐⭐ |
| 26 | [📊 Calcula el porcentaje completado](https://adventjs.dev/es/challenges/2024/26) | 🟢 | [here](./2024/26-calcula-el-porcentaje-completado/index.js) | [here](./2024/26-calcula-el-porcentaje-completado/README.md#mi-solución-explicada) | ⭐⭐⭐⭐⭐ |Difficulties legend:
🟢 Easy 🟡 Medium 🔴 Hard**My results:**
## 🎯 2023 Challenges
Show / Hide
| # | Challenge | Difficulty | My Solution |
| :-: | ------------------------------------------------------------------------------------------- | :--------: | :------------------------------------------------------------------------------------------------------------: |
| 01 | [¡Primer regalo repetido!](https://adventjs.dev/es/challenges/2023/1) | 🟢 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2023/01-primer-regalo-repetido) |
| 02 | [Ponemos en marcha la fábrica](https://adventjs.dev/es/challenges/2023/2) | 🟢 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2023/02-ponemos-en-marcha-la-fabrica) |
| 03 | [El elfo travieso](https://adventjs.dev/es/challenges/2023/3) | 🟢 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2023/03-el-elfo-travieso) |
| 04 | [Dale la vuelta a los paréntesis](https://adventjs.dev/es/challenges/2023/4) | 🟡 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2023/04-dale-la-vuelta-a-los-parentesis) |
| 05 | [El cybertruck de santa](https://adventjs.dev/es/challenges/2023/5) | 🟡 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2023/05-el-cybertruck-de-santa) |
| 06 | [Los renos a prueba](https://adventjs.dev/es/challenges/2023/6) | 🟢 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2023/06-los-renos-a-prueba) |
| 07 | [Las cajas en 3D](https://adventjs.dev/es/challenges/2023/7) | 🟢 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2023/07-las-cajas-en-3d) |
| 08 | [Ordenando el almácen](https://adventjs.dev/es/challenges/2023/8) | 🟡 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2023/08-ordenando-el-almacen) |
| 09 | [Alterna las luces](https://adventjs.dev/es/challenges/2023/9) | 🟢 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2023/09-alterna-las-luces) |
| 10 | [Crea tu propio árbol de navidad](https://adventjs.dev/es/challenges/2023/10) | 🟢 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2023/10-crea-tu-propio-arbol-de-navidad) |
| 11 | [Los elfos estudiosos](https://adventjs.dev/es/challenges/2023/11) | 🟡 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2023/11-los-elfos-estudiosos) |
| 13 | [Calculando el tiempo](https://adventjs.dev/es/challenges/2023/13) | 🟢 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2023/13-calculando-el-tiempo) |
| 14 | [Evita la alarma](https://adventjs.dev/es/challenges/2023/14) | 🟡 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2023/14-evita-la-alarma) |
| 15 | [Robot autónomo](https://adventjs.dev/es/challenges/2023/15) | 🟡 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2023/15-robot-autonomo) |
| 16 | [Despliegue en viernes](https://adventjs.dev/es/challenges/2023/16) | 🟢 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2023/16-despliegue-en-viernes) |
| 17 | [Optimizando el alquiler](https://adventjs.dev/es/challenges/2023/17) | 🟢 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2023/17-optimizando-el-alquiler) |
| 18 | [El reloj digital](https://adventjs.dev/es/challenges/2023/18) | 🔴 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2023/18-el-reloj-digital) |
| 19 | [Enfrenta el sabotaje](https://adventjs.dev/es/challenges/2023/19) | 🟡 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2023/19-enfrenta-el-sabotaje) |
| 20 | [Distribuye el peso](https://adventjs.dev/es/challenges/2023/20) | 🔴 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2023/20-distribuye-el-peso) |
| 21 | [Mensaje binario](https://adventjs.dev/es/challenges/2023/21) | 🟡 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2023/21-mensaje-binario) |
| 22 | [Lenguaje de programación](https://adventjs.dev/es/challenges/2023/22) | 🟢 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2023/22-lenguaje-de-programacion) |
| 23 | [La comida de navidad](https://adventjs.dev/es/challenges/2023/23) | 🟢 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2023/23-la-comida-de-navidad) |
| 24 | [Brincos en la escalera](https://adventjs.dev/es/challenges/2023/24) | 🟡 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2023/24-brincos-en-la-escalera) |
| 25 | [Calculando distancias](https://adventjs.dev/challenges/2023/25) | 🟡 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2023/25-calculando-distancias) |Difficulties legend:
🟢 Easy 🟡 Medium 🔴 Hard## 🎯 2022 Challenges
Show / Hide
| # | Challenge | Difficulty | My Solution |
| :-: | ------------------------------------------------------------------------------------------- | :--------: | :------------------------------------------------------------------------------------------------: |
| 01 | [Automatizando envolver regalos de navidad!](https://adventjs.dev/challenges/2022/1) | 🟢 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2022/01-regalos-de-navidad) |
| 02 | [Nadie quiere hacer horas extra](https://adventjs.dev/challenges/2022/2) | 🟢 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2022/02-horas-extra) |
| 03 | [¿Cuántas cajas de regalos puede llevar Papá Noel?](https://adventjs.dev/challenges/2022/3) | 🟢 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2022/03-cajas-de-regalo) |
| 04 | [Una caja dentro de otra caja y otra...](https://adventjs.dev/challenges/2022/4) | 🟡 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2022/04-caja-dentro-de-otra-caja) |
| 05 | [Optimizando viajes de Santa](https://adventjs.dev/challenges/2022/5) | 🔴 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2022/05-optimizando-viajes) |
| 06 | [Creando adornos navideños](https://adventjs.dev/challenges/2022/6) | 🟡 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2022/06-adornos-navideños) |
| 07 | [Haciendo inventario de regalos](https://adventjs.dev/challenges/2022/7) | 🟢 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2022/07-inventarios-de-regalos) |
| 08 | [¡Necesitamos un mecánico!](https://adventjs.dev/challenges/2022/8) | 🟡 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2022/08-mecanico) |
| 09 | [Las locas luces de Navidad](https://adventjs.dev/challenges/2022/9) | 🟢 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2022/09-locas-luces) |
| 10 | [El salto del trineo de Papá Noel](https://adventjs.dev/challenges/2022/10) | 🟡 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2022/10-salto-del-trineo) |
| 11 | [Papá Noel es Scrum Master](https://adventjs.dev/challenges/2022/11) | 🔴 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2022/11-es-scrum-master) |
| 12 | [Trineos eléctricos, ¡guau!](https://adventjs.dev/challenges/2022/12) | 🟡 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2022/12-trineos-electricos) |
| 13 | [Backup de los archivos de Papá Noel](https://adventjs.dev/challenges/2022/13) | 🟢 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2022/13-backup-de-archivos) |
| 14 | [El mejor camino](https://adventjs.dev/challenges/2022/14) | 🟡 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2022/14-mejor-camino) |
| 15 | [Decorando el árbol de Navidad](https://adventjs.dev/challenges/2022/15) | 🟡 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2022/15-decorando-el-arbol) |
| 16 | [Arreglando las cartas de Papá Noel](https://adventjs.dev/challenges/2022/16) | 🔴 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2022/16-arreglando-las-cartas) |
| 17 | [Llevando los regalos en sacos](https://adventjs.dev/challenges/2022/17) | 🟡 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2022/17-regalos-en-sacos) |
| 18 | [¡Nos quedamos sin tinta!](https://adventjs.dev/challenges/2022/18) | 🟢 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2022/18-sin-tinta) |
| 19 | [Ordenando los regalos](https://adventjs.dev/challenges/2022/19) | 🟢 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2022/19-ordenando-los-regalos) |
| 20 | [Más viajes retadores](https://adventjs.dev/challenges/2022/20) | 🔴 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2022/20-mas-viajes-retadores) |
| 21 | [Creando la tabla de regalos](https://adventjs.dev/challenges/2022/21) | 🟡 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2022/21-tabla-de-regalos) |
| 22 | [La iluminación en sintonía](https://adventjs.dev/challenges/2022/22) | 🟢 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2022/22-iluminacion-en-sintonia) |
| 23 | [Compilador de Papá Noel](https://adventjs.dev/challenges/2022/23) | 🔴 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2022/23-compilador-de-papa-noel) |
| 24 | [El último reto es un laberinto](https://adventjs.dev/challenges/2022/24) | 🔴 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2022/24-laberinto) |Difficulties legend:
🟢 Easy 🟡 Medium 🔴 Hard## 🎯 2021 Challenges
Show / Hide
| # | Challenge | Difficulty | My Solution |
| :-: | ------------------------------------------------------------------------------------------- | :--------: | :------------------------------------------------------------------------------------------------------: |
| 01 | [Contando ovejas para dormir](https://2021.adventjs.dev/challenges/01) | 🟢 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2021/01-contando-ovejas-para-dormir) |
| 02 | [Ayuda al elfo a listar los regalos](https://2021.adventjs.dev/challenges/02) | 🟢 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2021/02-ayuda-al-elfo-a-listar-los-regalos) |
| 05 | [Contando los dias para los regalos](https://2021.adventjs.dev/challenges/05) | 🟢 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2021/05-contando-los-dias-para-los-regalos) |
| 13 | [Envuelve regalos con asteriscos](https://2021.adventjs.dev/challenges/13) | 🟢 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2021/13-envuelve-regalos-con-asteriscos) |
| 16 | [Descifrando los números...](https://2021.adventjs.dev/challenges/16) | 🟢 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2021/16-descifrando-los-numeros) |
| 20 | [¿Una carta de pangramas?¡QUE!](https://2021.adventjs.dev/challenges/20) | 🟢 | [here](https://github.com/marcode24/adventjs-solutions/tree/main/2021/20-una-carta-de-pangramas-que) |Difficulties legend:
🟢 Easy 🟡 Medium 🔴 Hard