Reference Materials
Certification Courses
Created with over a decade of experience and thousands of feedback.
Python online compiler
JavaScript online compiler
SQL online compiler
Java online compiler
HTML online compiler
C online compiler
C++ online compiler
C# online compiler
PHP online compiler
Swift online compiler
Kotlin online compiler
TypeScript online compiler
Go online compiler
Rust online compiler
Scala online compiler
Dart online compiler
R online compiler
Ruby online compiler
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