When creating functions, you can use two approaches: declaration and expression. To declare a function, you use the keyword and specify a name for the function. This makes it an expression, which you have to assign to a variable. When you assign a variable, you assign it to the expression, and when you call the variable.
Table of contents
Function DeclarationFunction ExpressionFunction Declarations vs Function ExpressionsWrap upSort: