javascript - Functions and 'Function' constructor -
this question has answer here:
- function , object javascript 2 answers
first of all, not asking difference between creating functions function definitions (or expressions) , using 'function' constructor.... know 3 of them used in creating functions specific differences know.
what trying functions - known in javascript - first-class objects , function instance of 'function' constructor.
my question point in javascript makes having constructor function functions essential?
philosophically speaking, if 'function' constructor - function - constructor of functions constructor of constructor function 'function'?
it may strange question it's confusing!
from mdn:
the function constructor creates new function object. in javascript every function function object.
the important part functions function objects.
function objects useful parsing strings functions without use of eval. useful dynamically creating functions parameters , function body may not known @ compile time.
Comments
Post a Comment