Uncaught Type Error : cannot read property of 'addEventListener' of Null line : 5 . In my code check the code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Uncaught Type Error : cannot read property of 'addEventListener' of Null line : 5 . In my code check the code

This is not working https://code.sololearn.com/WqzmcxMe168y/?ref=app

16th Feb 2020, 6:07 AM
Hari kanani
Hari kanani - avatar
3 Answers
+ 2
She means: var goog = null; ... onload = () => { goog=document.getElementById("go"); ... goog.AddEventListener(...); ... } function ClickMe...
16th Feb 2020, 6:23 AM
Gyorgy Theisz
Gyorgy Theisz - avatar
+ 1
Change it in this code and send again me
16th Feb 2020, 6:29 AM
Hari kanani
Hari kanani - avatar
+ 1
Here is my try. BTW, I used different pictures but dont worry, the main code didnt change a lot. https://code.sololearn.com/WB57tYtNpqny/?ref=app
16th Feb 2020, 12:45 PM
JS LOVER
JS LOVER - avatar