Design comparison
SolutionDesign
Solution retrospective
How can we create one single function with a conditional to fetch date on page load and on click?
Community feedback
- @Dereje-getu-tadesse-10Posted over 2 years ago
hey call your function without window.load I did it like this if you want an example : https://github.com/Dereje-getu-tadesse-10/challenge-Advice-generator-app/blob/main/app.js
Marked as helpful1
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