Advice Generator with HTML, CSS and JS

Solution retrospective
I am proud of all of it, because I started taking a JS course so, I am using all I am learning right now about JS.
What challenges did you encounter, and how did you overcome them?I had some troubles with calling the API but I resolved it by reading my notes of the JS course
What specific areas of your project would you like help with?Any feedback is really appreciated. I liked to add interactivity to a website so, I wanna keep practicing :)
Please log in to post a comment
Log in with GitHubCommunity feedback
- @Anar765
You’ve done a fantastic job here!🎉
However, the advice only updates after clicking the button multiple times because the API response is cached. Add a unique query parameter such as
?timestamp=${Date.now()}
to the end of the URL (for example,https://api.adviceslip.com/advice?timestamp=${Date.now()}
) to prevent caching and ensure that fresh data is fetched with every request.Keep up the excellent work!
Marked as helpful
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