We'll discuss three ways of defining a function with examples and some benefits of having functions in javascript.