Generating sound effects
Until now, we mostly spoke about music. Of course, the same techniques can be used to play sound effects. There is however a very elegant solution for dealing with them: generating them at runtime. This mimics the way a lot of effects were created on old game consoles. To do this in JavaScript, you can use SFXR.js
(https://github.com/humphd/sfxr.js). It's a port of the popular SFXR. Sadly, it only works with Firefox's Audio Data API. Nevertheless, I would encourage you to check it out!