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

Advice Generator With JavaScript ES6 and API

@OlaOluwalekan

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


Just completed this API challenge. This is actually my first time building something with API. I'm still not used to working with API. If anyone has useful resources that I can use to learn API faster, I will appreciate them. Thanks.

Please feel free to give feedback. Thanks.

Community feedback

Elaine 11,400

@elaineleung

Posted

Hi Olalekan, I like your spinning dice animation! I'm viewing this on Firefox and I'm not able to load the next advice. This is a known issue that's most likely due to caching, so if you want users on Firefox to be able to use your app also, try adding a header object in the fetch method, like this:

fetch("https://api.adviceslip.com/advice", { cache: 'no-cache' })

If you have Firefox, you can test it out before and after. Once again, great work building this 🙂

Marked as helpful

0

@OlaOluwalekan

Posted

@elaineleung

Wow. thanks, Elaine! I don't know about this cache stuff. I'm actually new to API. I'll add it right away. Thanks once again. 👍

1

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