[WEB-MAD DE] Cynthia Elizabeth Gorosito#232
Open
Cylabeth wants to merge 1 commit into
Open
Conversation
ta-web-mad
reviewed
Sep 8, 2020
| } | ||
| }) | ||
| break; | ||
| case "10": |
Contributor
There was a problem hiding this comment.
Te faltó acceder a la primera posición del array resultante de la query, tal que así:
else {
console.log(result[0]);
ta-web-mad
reviewed
Sep 8, 2020
| console.log(error); | ||
| rl.question(`\nType enter to continue: `, (answer) => { mainMenu() }); | ||
| } else { | ||
| console.log(result); |
Contributor
There was a problem hiding this comment.
Fíjate que el resultado que te muestra la consola es un array de objetos, al igual que en la 10, debes primero acceder a la primera posición del array y luego a la propiedad que te interese mostrar, por ejemplo:
console.log(result[0].relationships);
ta-web-mad
reviewed
Sep 8, 2020
Contributor
There was a problem hiding this comment.
Buen trabajo Cynthia, la iteración 17 si que muestra perfectamente el resultado en el terminal, para el poco tiempo que tuvisteis y los problemas técnicos que surgieron durante la tarde está realmente bien abordado el ejercicio, enhorabuena y a seguir así!!!
Recuerda trabajar siempre dentro del directorio starter-code!!
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
He encontrado problemas para listar el contenido de los array de objetos de las interacciones 10 - 11 - 17. El resto estaría (presuntamente) bien :)