Advice Generator using CSS and JavaScript to call an API

Solution retrospective
I have never created code to call an API before nor have i ever coded promioses. I found a tutorial video on youtube and tweaked the code a little to suit my solution. I dont fully understand promises but have an idea how this calls the API and retrieves the random adivce.
I want to create a similar project where you can enter a number and receive that specific advice.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Mario Lisbona'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