Pass a function as an argument to another function in JavaScript

Click a thumbnail to watch in a lightweight modal. (No downloads — view only.)