+ 3

Help me plz

My event listener not working 😭😭😭 https://code.sololearn.com/W9R2vpjZQiba/?ref=app

17th Feb 2022, 2:52 PM
Rishi
Rishi - avatar
3 Answers
+ 3
17th Feb 2022, 6:00 PM
JaScript
JaScript - avatar
+ 3
JaScript wow it's working! I have a few questions: 1) Why did you use preventDefault() function? 2) What's the "eve" parameter? It's working even without it. Thank you for the help😊
18th Feb 2022, 2:35 AM
Rishi
Rishi - avatar
+ 3
Rishi here in this aplication they are not necessary. But why - a click event happend after press and release of button. So for another events it can be needed. This is how to program safely. eve = event parameter. There are so many web-browsers for which needed to test and write a working code. The most important thing that the code is working, is the additional js-file, what unfortunatelly you did not implemented.
18th Feb 2022, 11:00 AM
JaScript
JaScript - avatar