Uncaught TypeError | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 2

Uncaught TypeError

Other browser working fine. But sololearn said type error. They can't read AddEventListener Property! How to solve this problem? https://code.sololearn.com/WOPxuNxHXTJd/?ref=app

28th Oct 2021, 3:17 PM
Milon - avatar
2 ответов
+ 5
Just right whole JavaScript code inside Window onload window.onload=()=>{ //Your code goes here } Reason: Your HTML contens load before the JavaScript so you have to write JavaScript code inside the window.onload function so your Javascript code will execute after loading HTML contents.
28th Oct 2021, 3:21 PM
Pariket Thakur
Pariket Thakur - avatar
+ 4
Beauty Thanks❤️
28th Oct 2021, 3:27 PM
Milon - avatar