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

Quote generator app HTML | CSS | JS | API

@justbycris

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


I loved this project, it was great to dive into fetch API. My difficult task was that at first my fetch data kept coming out with the same response (quote) no matter if I clicked the button or refreshed the page. So doing some research I find out I had to clear the cache when making another request, hence why it wasn't updating. It helped a lot for understanding better fetch API and how to handle JSON objects.

Community feedback

Aliko Amos 100

@Aliko2020

Posted

great work, your code looks well-structured and clean, consider using const or let consistently when declaring variables. For example, you can use const for url since it doesn't chang

0

@justbycris

Posted

Oooh got it. Good point! I'll make sure to do that in the future. Thanks! (: @Aliko2020

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