This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { | |
| showPeliculas, | |
| sortPeliculas, | |
| searchPeliculas, | |
| tagPeliculas, | |
| } = require("./pelis.js"); | |
| function main() { | |
| console.log("Bienvenido a la aplicación de películas"); | |
| console.log("Aquí puedes ver, buscar y ordenar películas."); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { mostrarPelis, sort, search, tag } = require("./pelis"); | |
| function main() { | |
| const key = process.argv[2] ? process.argv[2].toLowerCase() : undefined | |
| const value = process.argv[3] ? process.argv[3].toLowerCase() : undefined | |
| console.log(value); | |
| if (!key) { | |
| mostrarPelis(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const jugadorUno = { | |
| nombre: "Marce", | |
| habilidades: { | |
| ataque: 70, | |
| velocidad: 30, | |
| vida: 60, | |
| magia: 120, | |
| }, | |
| articulos: ["espada", "escudo", "varita"], | |
| }; |