Submitted over 2 years ago
Responsive page using Flexbox and CSS for advice generator app
@yshashanky
Design comparison
SolutionDesign
Solution retrospective
From this project I have learned how to fetch response from API and display it as required.
Community feedback
- @alQaisiPosted over 2 years ago
Hi Shashank :)
Great job!
I think you should add a catch after you call the promise from the userAction function, or you could add a try-catch block in the userAction function body.
The idea is to know when there is an error, it could be a connection error or any other issue, so you can know what is the issue and maybe try to fix them.
Have a nice day.
Marked as helpful0
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