Add:
A functional literal in JavaScript is synonymous with a function expression.
In parallel with function expressions, function literals may have an optional identifier (name).
Therefore, if we say functional expressions / function literals, it includes functional expressions / function literals without an identifier (also called anonymous functions), but also functional expressions / function literals with an identifier. Even if in many books the expression / function literal function is used as a synonym for the expression of a literal function / function without an identifier (anonymous functions).
Functional literal
Function objects are created using function literals:
// Create a variable called add and store the function // in it, which adds two numbers.
> var add = function (a, b) { > return a + b; };
A functional literal has four parts.
The first part is the reserved word function.
The additional second part is the name of the function. A function can use its name for a recursive call. The name can also be used by debuggers and development tools to identify functions. If a function is not named, as shown in the previous example, this is called anonymous.
The third part is a set of function parameters enclosed in parentheses. In parentheses is a set of zero or more parameter names, separated by commas. These names will be defined as variables in the function. Unlike ordinary variables, instead of initializing to undefined, they will be initialized with the arguments specified when the function was called.
The fourth part is a collection of statements wrapped in braces. These statements are the body of the function. They are executed when the function is called.
A functional literal can appear anywhere where an expression can appear ...
source: JavaScript: Good details - Douglas Crockford
It means:
myFunction = function () { alert("hello world"); };
is a character expression of a function / function, as well as:
myFunction = function myFunction() { alert("hello world"); };
is a function / function literal.