Category: TIL

  • TIL: Passing parameters to callback functions

    Today I tried to move an Event Listener callback function to it’s own module. It seemed simple enough. Take the following code example: app.js Now, my callback was a little more complex so it made sense to move to a module. The question then became why it didn’t work when I tried the following: app.js […]