Submitted 6 months ago
Advice Generator App | HTML, CSS, JavaScript
@Marjolein-Kasman-de-Jong
Design comparison
SolutionDesign
Community feedback
- @KorneyChervonenkoPosted 6 months ago
Hello friend, instead of .addEventListener('click', () => {displayAdvice();}) why don't just do .addEventListener('click', displayAdvice) ?
0@Marjolein-Kasman-de-JongPosted 5 months ago@KorneyChervonenko I'm used to doing this in React, because functions will be executed on page load otherwise.
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