Is it possible in javascript to invoke "Object" [closed]

No.

Functions are objects, but not all objects are functions. You can only call functions.

You can see the process for creating a function object in the spec. It is important to note step 3:

Set the [[Class]] internal property of F to “Function”.

You can’t set that internal property yourself, so you can’t convert a non-function into a function.

Browse More Popular Posts

Leave a Comment