+ 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

26th Jan 2022, 2:21 PM
Ashwini Adsule
Ashwini Adsule - avatar
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
26th Jan 2022, 2:41 PM
Ipang
+ 1
Ipang thanks
26th Jan 2022, 2:47 PM
Ashwini Adsule
Ashwini Adsule - avatar