You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Honestly, one of the reasons I like this idea is because JavaScript allows you to do this when you register event listeners for DOM events.
But as for a use case, we might want to give the person creating the question a menu of possible responses that would each be implemented as individual event handlers. Another use case might be a scenario where there are multiple questions, and questions' creator may wish to respond to the completion of each question, but also have a common event handler that tallies the results.
All that being said, I wouldn't consider this a high priority at this point.
Maybe add
addEventListner
andremoveEventListener
methods?Maybe something more specific like
setOnCorrect
orsetOnIncorrect
?The text was updated successfully, but these errors were encountered: