There are 3 basic ways in which you can write your JavaScript Functions.
Simple Way – A function with a name
Declaring function as an object
Create functions dynamically by Calling the constructor
Summing it up:
Output after execution:
There are 3 basic ways in which you can write your JavaScript Functions.
Summing it up:
Output after execution: