+ 1

SOLVED | question is for people experienced in js.

this code has 2 types of event listeners (from here EL) syntax: from js & from jquery.i think they do same thing.I wanna to stop executing printLine() by touch using EL with "touchend" event.EL from jquery can't turn off when boolean isKeyPressed is true,js EL does that.line. jquery EL starts on line 26,js EL starts on line 34 why? p.s. try to answer as simple as u can(I'm not very experienced in js) https://code.sololearn.com/WJ5KHZruq8J0/?ref=app

5th Jul 2022, 9:31 AM
dottxt | off
dottxt | off - avatar
2 Réponses
0
Could you tell us: - What line has the working event listener? - What line has the broken event listener? - What do you want it to do? - How is what it’s currently doing differ from what you want?
6th Jul 2022, 9:56 AM
Jeremy Miller
+ 1
updated
6th Jul 2022, 10:03 AM
dottxt | off
dottxt | off - avatar