Design comparison
SolutionDesign
Solution retrospective
The slip_id
comes as undefined for some reason. I've many years without coding so, if some could help would be great.
Cheers from Ecuador!
Community feedback
- @elyyysePosted over 1 year ago
Hey, Aaron - This looks great! Looks like you just have a small syntax error. This is what you get back from the Advice API:
{"slip": { "id": 28, "advice": "When you're looking up at birds flying overhead, keep your mouth closed."}}
So anywhere that you reference
.slip_id
in your code, change it to.id
and that should fix the problem.Marked as helpful0@aaronpaulgzPosted over 1 year ago@elyyyse Oh! You're right. Thanks, Elyse! Hugs from Ecuador
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord