Outline
Anonymous functions are stored in a variable but not given there own name. This allows you to pass references to the function later on in the code.
Example:
const add = function (num1, num2) {
return num1 + num2;
}
Anonymous functions are stored in a variable but not given there own name. This allows you to pass references to the function later on in the code.
Example:
const add = function (num1, num2) {
return num1 + num2;
}