Hacker News new | ask | show | jobs
by timewizard 380 days ago
As always, mdn has the best javascript documentation, which clarifies the reason this mechanism exists and the fact it actually takes two callbacks:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...