JavaScript Function Methods

Beginner
4 min read
Updated: Nov 2026
4 method guides
Method index

About This Index

This page is the JavaScript Function Methods index. Every function has four methods. Each row below links to a full guide with syntax, examples you can run, and FAQs.

Learn what a function is on /js/function. Use this page when you need a specific method such as bind().

All four are called on a function.

Write the function name, a dot, then the method: greet.call(user), greet.apply(user, [...]), greet.bind(user) and greet.toString().

How to Call a Function Method

Call the methods on any function:

JavaScript
function introduce(greeting) {
  return greeting + ", I am " + this.name;
}

const user = { name: "Ava" };

console.log(introduce.call(user, "Hello"));      // run now, arguments one by one
console.log(introduce.apply(user, ["Hello"]));   // run now, arguments in an array

const bound = introduce.bind(user);              // new function, this is locked
console.log(bound("Hello"));

console.log(introduce.toString().length > 0);    // the code as text

JavaScript Function Methods Table

All method guides in this JavaScript tutorial series (4 tutorials), grouped by what they do.

Run a function with a chosen this

2 methods

Both methods run the function immediately. They differ only in how you pass the arguments.

MethodDescriptionTutorial
apply()Run a function now with a chosen this and the arguments in one array.Open
call()Run a function now with a chosen this and the arguments one by one.Open

Create a new function

1 method

Prepare a function now and run it later.

MethodDescriptionTutorial
bind()Return a new function with this locked and, if you like, the first arguments filled in.Open

Read a function as text

1 method

See the code of a function.

MethodDescriptionTutorial
toString()Return the code of a function as text. JavaScript calls it for you in String(fn) and in "text" + fn.Open

Frequently Asked Questions

Four everyday ones: call() and apply() run the function with a chosen this, bind() returns a new function with this fixed, and toString() returns the function code as text. Functions also have the properties name and length.
The Function page explains the idea: what a function is, the ways to write one, how this works and what a closure is. This index lists the method guides so you can jump straight to the one you need.
Use call() to run a function now with arguments one by one, apply() to run it now when the arguments are already in an array, and bind() when you need a new function to run later, for example as a callback.
No. They are instance methods: you call them on a function, as in greet.call(user). You do not call them on Function itself.
Start with call(), because it is the simplest way to see how this can be chosen. Then read apply() and bind(), and finish with toString().

Start with call()

Open the guide for running a function with a chosen this value: syntax, examples, and FAQs.

call() tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

10 people found this page helpful