What is a function?
Function is defined as set of systematic procedure followed to attain a particular goal.
What is a function in programming language ?
Functions in programming language is considered as block of standard codes which can be reused by calling multiple times inside the program which provides the desired output, without re-typing the code again and again.
Function Object is created by Function Constructor and will be executed globally.
So if we call the constructor directly it will create a function object, which will be in unsecured way.
new Function ([arg1[, arg2[, ....argn]],] functionBody)
arg1, arg2, …. , argn
It represents the argument used by function.
It represents the function definition.
The value of a = 10
The value of b = 20
The value of addition = 30
|Sno||Method / Function||Description|
|1||apply()||apply() method is used to call a function contains this value and a single array of arguments.|
|2||bind()||bind() method is used to create a new function.|
|3||call()||call() method is used to call a function contains this value and an argument list.|
|4||toString()||toString() method returns the result in a form of a string.|