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

Random Advice generator

@ChristianKaycee

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


What are you most proud of, and what would you do differently next time?

Learnt how to use API

What challenges did you encounter, and how did you overcome them?

Getting the id of the quote generated on each click

What specific areas of your project would you like help with?

I was a little confused at first on the method to use to get the advice, shouldn’t API’s have a json file for clarity or something?

Community feedback

@TedJenkler

Posted

Hi Christian,

Absolutely! APIs typically come with detailed documentation that includes example JSON responses to help you understand how to use them. Tools like Axios are particularly effective for making API requests because of their promise-based syntax and error handling capabilities (like try/catch). Axios also automatically parses JSON responses and simplifies both sending requests and handling the data, making API interactions much more manageable.

Hope this helps!

Best, Teodor

0

@ChristianKaycee

Posted

@TedJenkler I see, I think I’ll stick with fetch () for now 😮‍💨

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