11.2. Anonymous Functions¶
function myFunction(parameter1, parameter2,..., parameterN) {
// function body
}
/*A function defined in this way is a named function
(myFunction, in the example above).
Many programming languages, including JavaScript, allow us to create
anonymous functions, which do not have names. We can create an anonymous
function by simply leaving off the function name when defining it:*/
function (parameter1, parameter2,..., parameterN) {
// function body
}