0
How to add eventListeners the oop way in es6
I'm working on a project currently and i don't like how my JavaScript is messed up all over with functions, i tried to implement things using es6 classes but i got stuck when i had to listen to events, when i create a function in the class i get an error saying ' Unexpected token "}" '....can anyone help pls?........Thanks in advance
3 Answers
+ 4
As Mohamed said before: it is recommended that you share your code here. That way it's much easier to help you.
Currently it is quite complicated to know why you get that error.
0
https://code.sololearn.com/W37DurqxuOzV/#js
please check the code here
0
Thank you very much sir