Design comparison
Solution retrospective
Proud that I learnt how to use 3rd party APIs within a project.
What challenges did you encounter, and how did you overcome them?Had a few issues with running the site in firefox as it wouldn't randomise the advice, instead it would only display the first generated piece of advice. To combat this, I changed the cache
setting in the fetch()
command to no-store
.
Any help is welcome :)
Community feedback
- @NatureSon22Posted 6 months ago
You might be interested in knowing that there's another way to handle promises using asynchronous functions. This method involves the async and await keywords, which can simplify your code.
[https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function]
1
Please log in to post a comment
Log in with GitHubJoin 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