How to call two functions on one click? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to call two functions on one click?

I want an exit button to disappear, whiles on the same click, triggers an image to appear https://code.sololearn.com/W0zsH6Tf0JHp/?ref=app

6th Aug 2022, 10:01 AM
Tony Stark
Tony Stark - avatar
1 Answer
+ 2
I think it would work better with an event listener and you add both actions when the click event occurs.
6th Aug 2022, 11:35 AM
Ausgrindtube
Ausgrindtube - avatar