Design comparison
SolutionDesign
Community feedback
- @abdelrhmanKhPosted about 2 years ago
Hi Geethesh Nair, Very Good Work keep up my Friend. Just A quick fix.
- There are some times you click on the dice but nothing happens, I recomend using the other URL that you enter the number of the advice on the URL so that it came faster with me
fetch(`https://api.adviceslip.com/advice/${Math.floor(Math.random() * 200)}`) .then((response) => response.json()) .then((data) => { advice.innerHTML = `ā${data.slip.advice}ā`; adviceId.innerText = data.slip.id; } );
this is my code you Could use the API Url as I did.
Other than that its Amazing job š„°
0@geethesh2610Posted about 2 years agoHi @abdelrhmanKh, Much appreciate your advice :)
0
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