ForumsProgramming ForumWhat is the purpose of Event Listners?

1 2140
cheese123
offline
cheese123
20 posts
30

So what is the purpose of Event Listners, why not just use if statements to execute a function?

  • 1 Reply
strouthas
offline
strouthas
24 posts
30

Because if statement will be enormous and confusing and cpu and time consuming without reason. Event will happen only when it's needed to get your attention.

Showing 1-1 of 1