+ 2
[SOLVED]Even listener error
This is my first Web page and I got an error with JS, can anyone help me, here is my code https://code.sololearn.com/WYnj2gQik0zA/?ref=app
2 Answers
+ 2
First you need to fix typo at line 1
"addEvenListener" should be "addEventListener".
Once that typo been fixed, move line 1 ~ 8 into a "load" event handler body
window.onload = () =>
{
// move line 1 ~ 8 here
}
https://www.sololearn.com/post/90825/?ref=app
+ 1
Ipang thanks