How to Use Function "Constructors"

Functions can be created using a "function" statement or the Function() constructor. Dynamic functions are created when defining functions with the "new" operator and Function() constructor. Constructors not only create new objects but also specify the behaviors and properties of those objects.

Function

The Function object provides methods for functions. In JavaScript, every function is actually a Function object.


Source: Mozilla, https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function
Creative Commons License This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.