Design comparison
SolutionDesign
Community feedback
- @zqwirpPosted over 2 years ago
You can use random numbers to generate random suggestions, for example:
const slipId = Math.floor(Math.random() * (224 - 1)) + 1; const data = await fetch("https://api.adviceslip.com/advice/" + slipId) .then(res => res.json()) .then(res => { return { id: res.slip.id, advice: res.slip.advice, }; });
1 - @CodeVeePosted over 2 years ago
@Kehinde13 Hi Kehinde Balogun, Great job completing this assignment. Few Suggestions :
-
Wrap your code with a
main
tag. -
Replace your
h4
with ah1
. -
Try and center your button
1 -
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