A simple post explaining a few different ways you can write a JavaScript function on my programing interview series blog.