0

AddEventListener Problem!

AddEventListener Problem! How can I fix it? Please help me. https://code.sololearn.com/W2Qq2MY2Tp9B/?ref=app

26th Jun 2021, 4:45 PM
Nur Efşan Şimşek
Nur Efşan Şimşek - avatar
3 Answers
+ 3
Nur Efşan Şimşek Function name should start from small character. Also write js code inside window.onload function window.onload = function () { document.querySelector('button') .addEventListener('click', () => { alert('Hello guys, how are you?') }) } https://code.sololearn.com/WMOPto3x77nE/?ref=app
26th Jun 2021, 4:50 PM
A͢J
A͢J - avatar
+ 2
26th Jun 2021, 4:50 PM
Ipang
+ 2
Thank you 🙏🏻
26th Jun 2021, 4:53 PM
Nur Efşan Şimşek
Nur Efşan Şimşek - avatar