Callback versus Event listener

Comments

1 comment

  • Hi James,

    Event listener is a better option because of the reason that there is no limit to the number of listeners when you use it. While if you use Callback functions there can only be a single callback. Hope this answer your question.

    Regards,
    Spas

    0
    Comment actions Permalink

Please sign in to leave a comment.