Skip to content
Submitted almost 2 years ago

Advice Generator App

LVL 3
@ilyesab
A solution to the Advice generator app challenge

Solution retrospective


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

proud of building a project that interacts with third party API's using the modern fetch method.

I also tried to structure the code in a readable and understandable manner.

fetch seemed great so I don't know if I'll use anything different next time. but I'm curious how interacting with API's work in the context of frontend frameworks.

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

The main challenege was requesting the data from the Advice Slip Json API.

I used the fetch method to accomplish that. wrapped in an async function that fetches one random advice and returns it.

On page load and on the click of the button. we fetch one random advice and update the UI using simple DOM manipulation.

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

I would like to know if my code is readable and understandable by other developers.

Thank you for checking out my solution.

Code
Loading...

Please log in to post a comment

Log in

Community feedback

No feedback yet. Be the first to give feedback on Abouelhouda Iliass’s solution.

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