Building a minimal JavaScript event system This is the finished code from the tutorial. You will need Node.js installed. To run the tests, cd into this directory and then run npm test.