Design comparison
Solution retrospective
i figure out the diference between click() and onclick.
and if someone can give me some suggestions to improve the project, that will be better.
Community feedback
- @MarcusTuliusCiceronPosted over 2 years ago
Hi, congrats with this solution,
if you want the clikc on the button continue to generate random advice you can add this line to empty the cache that way:
const xhr = new XMLHttpRequest(); cache: 'no-cache' /* initialize request */ xhr.open("GET", "https://api.adviceslip.com/advice");
Hope it helps, if it don't fix the issue you can have a look on my profile I complete the challenge few days ago
Happy coding :)
0 - @shashreesamuelPosted over 2 years ago
Hey good job completing this challenge
Keep up the good work
Your solution looks great however I think that your divider line has a bit too much margin from the bottom using
margin-bottom
.In terms of accessibility issues simply wrap all the content between main tags
I hope this helps
Cheers Happy coding š
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