nstance]() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/@@hasInstance)
    2. [ ` Function.prototype.apply() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply)
    3. _[ ` Function.prototype.bind() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind) _
    4. [ ` Function.prototype.call() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/call)
    5. [ ` Function.prototype.toString() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/toString)
  6. **Inheritance**
  7. **[ ` Object ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) **
  8. Properties 
    1. [ ` Object.prototype.constructor ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/constructor)
    2. [ ` Object.prototype.__proto__ ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto) Deprecated 
  9. Methods 
    1. [ ` Object.prototype.__defineGetter__() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__defineGetter__) Deprecated 
    2. [ ` Object.prototype.__defineSetter__() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__defineSetter__) Deprecated 
    3. [ ` Object.prototype.__lookupGetter__() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__lookupGetter__) Deprecated 
    4. [ ` Object.prototype.__lookupSetter__() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/__lookupSetter__) Deprecated 
    5. [ ` Object.prototype.hasOwnProperty() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty)
    6. [ ` Object.prototype.isPrototypeOf() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isPrototypeOf)
    7. [ ` Object.prototype.propertyIsEnumerable() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable)
    8. [ ` Object.prototype.toLocaleString() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toLocaleString)
    9. [ ` Object.prototype.toString() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString)
    10. [ ` Object.prototype.valueOf() ` ](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/valueOf)

##  In this article

  * Try it 
  * Syntax 
  * Description 
  * Examples 
  * Specifications 
  * Browser compatibility 
  * See also 

#  Function.prototype.bind()

The **` bind() ` ** method of [ ` Function ` ](/en-
US/docs/Web/JavaScript/Reference/Global_Objects/Function) instances creates a
new function that, when called, calls this function with its ` this ` keyword
set to the provided value, and a given sequence of arguments preceding any
provided when the new function is called.

##  Try it

##  Syntax

js

    
    
    bind(thisArg)
    bind(thisArg, arg1)
    bind(thisArg, arg1, arg2)
    bind(thisArg, arg1, arg2, /* â¦, */ argN)
    

###  Parameters

` thisArg `

    

The value to be passed as the ` this ` parameter to the target function ` func
` when the bound function is called. If the function is not in [ strict mode
](/en-US/docs/Web/JavaScript/Reference/Strict_mode) , [ ` null ` ](/en-
US/docs/Web/JavaScript/Reference/Operators/null) and [ ` undefined ` ](/en-
US/docs/Web/JavaScript/Reference/Global_Objects/undefined) will be replaced
with the global object, and primitive values will be converted to objects. The
value is ignored if the bound function is constructed using the [ ` new `
](/en-US/docs/Web/JavaScript/Reference/Operators/new) operator.

` arg1 ` , â¦, ` argN ` Optional

    

Arguments to prepend to arguments provided to the bound function when invoking
` func ` .

###  Return value

A copy of the given function with the specified ` this ` value, and initial
arguments (if provided).

##  Description

The ` bind() ` function creates a new _bound function_ . Calling the bound
function generally results in the execution of the function it wraps, which is
also called the _target function_ . The bound function will store the
parameters passe