You'll write a lot of functions when you become a JavaScript developer. This article goes over different ways how to write them.