+ 2
JS What's the difference between x.onclick and x.addEventListener() ?
I was just working on a code and in the js, I had x.onclick, but didn't work. But it worked when I did it through addEventListener(). So what really is the difference ?
2 Respostas
+ 4
https://code.sololearn.com/W0ehmlP2Y3I3/?ref=app
you can find most of the answer to your questions in here :
https://code.sololearn.com/Wyr76080kKxS/?ref=app