javascript - Functions and 'Function' constructor -


this question has answer here:

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

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -