Pokémon Guide#42
Conversation
|
Tengo la sensación de que faltan muchos cambios? y me hace mucho ruido que solo 1 de ustedes tenga nombre y foto (cuenta) revisen eso porque si no todo el trabajo es anónimo. ;) |
| import data from './data/pokemon/pokemon.js'; | ||
|
|
||
| //funcion para mostrar todos los pokemones | ||
| export function showPokemons (pokemon) { |
There was a problem hiding this comment.
Recuerda ser más semantica, la función recibe 1 pokemon y devuelve un array de pokemones? tal vez recibe un ID?, sé más descriptiva ;)
| "@babel/core": "^7.6.2", | ||
| "@babel/plugin-transform-modules-commonjs": "^7.6.0", | ||
| "babel-jest": "^24.9.0", | ||
| "express": "^4.17.1", |
There was a problem hiding this comment.
porqué está express instalado? XD
| //funcion para mostrar todos los pokemones | ||
| export function showPokemons (pokemon) { | ||
| let allPokemons = data.pokemon | ||
| for (let i = 0; i <= allPokemons.length; i++){ | ||
| } | ||
| return allPokemons; | ||
| } | ||
|
|
||
|
|
||
|
|
||
| //funcion para filtrar por tipo | ||
| export function filterByType(type){ | ||
| let filter = data.pokemon.filter(poke=>poke.type.includes(type)) | ||
| return filter; | ||
| } |
There was a problem hiding this comment.
Este código ya vivía en otro archivo
| let weight = document.createElement ("p"); | ||
| let candyCount = document.createElement ("p"); | ||
| let egg = document.createElement ("p"); | ||
| let weakness = document.createElement("p"); |
There was a problem hiding this comment.
Muy bien el orden de los nodos
| @@ -14,4 +14,5 @@ export function showPokemons (pokemon) { | |||
| export function filterByType(type){ | |||
| } | ||
|
|
||
| .item-flex:hover { | ||
| color:red; |
There was a problem hiding this comment.
Sean más consistentes con los espacios
| // import data from './data/lol/lol.js'; | ||
| // import data from './data/patient/patient.js'; | ||
| // import data from './data/pokemon/pokemon.js'; | ||
| import data from './data/pokemon/pokemon.js'; |
There was a problem hiding this comment.
Los comentarios de los commits no son descriptivos, mejorarlos.
No description provided.