JavaScript 011 – Function Variable

In JavaScript, we can store a function in a variable and then call the function using the variable. The variable which stores the function is called Function Variable. This will help passing functions as parameter to other functions. In this example, we will see how to use function as a variable.