So what is the purpose of Event Listners, why not just use if statements to execute a function?
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.
You must be logged in to post a reply!