Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Advice generator app using using the Advice Slip API

Sushi 170

@SushiOnToast

Desktop design screenshot for the Advice generator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
  • API
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


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

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.

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

Any help is welcome :)

Community feedback

Nature Son 1,100

@NatureSon22

Posted

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 GitHub
Discord logo

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