JS Built-ins
FunctionFunctionbeginner

Function() β€” instanceof check

πŸ“– Usage Example
new Function('return 42')()  // β†’ 42

Immediately invoke a Function-constructed function with an extra () pair.

Function constructor β€” instanceof

Functions created with new Function() are instances of Function. This means instanceof Function returns true.

Challenge: Verify that new Function() instanceof Function returns true.

πŸ’‘ Hints (2)
  • β€’ `instanceof` checks the prototype chain.
  • β€’ All functions are instances of `Function`.