The way you define a function in JavaScript will affect its behavior. We explore each way one by one.