-
Notifications
You must be signed in to change notification settings - Fork 437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WEB-MAD DE] Cynthia Elizabeth Gorosito #232
base: master
Are you sure you want to change the base?
Conversation
} | ||
}) | ||
break; | ||
case "10": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Te faltó acceder a la primera posición del array resultante de la query, tal que así:
else {
console.log(result[0]);
console.log(error); | ||
rl.question(`\nType enter to continue: `, (answer) => { mainMenu() }); | ||
} else { | ||
console.log(result); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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!!
He encontrado problemas para listar el contenido de los array de objetos de las interacciones 10 - 11 - 17. El resto estaría (presuntamente) bien :)