@imadbg01
Posted
Greeting Jay-Ann Bravo-Harriott!! Congratulations for completing your challenge!, 👏👏👏.
You did great on this challenge, but there is a bug on Firefox relative to cache, Firefox users will not be able to generate a new advice, to fix that for them simply pass an optional parameter {cache: 'no-cache'}
to fetch.
const getAdvice = () => {
const url = "https://api.adviceslip.com/advice";
fetch(url, {cache: 'no-cache'})
// ...
Overall, good job, have a great day/night, and keep coding 👍.