Answer the question
In order to leave comments, you need to log in
How to react to event?
Let's say for each event something should happen.
Let's say there are 5 events:
[ 1, 2, 3, 4, 5 ]
And each of the events has a function that changes the background color.
Question:
How to correctly bind events to the functions to which they relate, i.e. when event 3 occurs, the window color should turn red and when event 1 occurs, white, etc...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question