Is there any guarantee of function call order when using add event listener?
I’d like to have functions called in the order they are added. Is this possible? Any suggestions if not?
Example:
function first();
function second();
element.addEventListener(“click”, first);
element.addEventListener(“click”, second);
No mention in MDN Reference:
https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener