In JavaScript, the function keyword does a simple job: creates a function. However, the way you define a function using the keyword can create functions with different properties.

In this post, you’ll find how using the function keyword you can write function declarations and function expressions, and what are the differences between the 2 types of functions.

    1. Function expressions vs function declarations
    1. The function declaration
      2.1 Dos and don’ts of the function declaration
    1. The function expression
      3.1 Dos and don’ts of the function expression
    1. Summary

#javascript

Don't Confuse Function Expressions and Function Declarations in JavaScript
1.10 GEEK