Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Slip advice challenge

@aaronpaulgz

Desktop design screenshot for the Advice generator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
  • API
2junior
View challenge

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

P

@elyyyse

Posted

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 helpful

0

@aaronpaulgz

Posted

@elyyyse Oh! You're right. Thanks, Elyse! Hugs from Ecuador

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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