Reference Materials
Certification Courses
Created with over a decade of experience and thousands of feedback.
JavaScript Function Object
In JavaScript, functions have properties and methods just like other objects because they themselves are Function objects.
In this reference page, you will find all methods of a Function object and its properties. For example, the length property of a function denotes the number of arguments expected by the function.
Returns source code of function as a string
Returns the number of parameters of a function
Returns the name of the given function
calls function with this value and array of args
Calls a function with a given this value and args
Creates new function with given this value & args