@ervinCodesSubmitted over 2 years ago
How can we create one single function with a conditional to fetch date on page load and on click?
How can we create one single function with a conditional to fetch date on page load and on click?
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