+ 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
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.
+ 4
Beauty Thanks❤️