Expressions
Function expression
Evaluating a function expression creates a function value. The name is optional and a named expression exposes its name within the function itself. The surrounding variable follows its declaration initialization rules.
Formal Syntax & Structure
javascript syntaxjavascript
const f = function name(parameter) { … };Working Example
Example Snippetjavascript
const f = function inner(){return typeof inner;};console.log(f(),typeof inner);