mozilla

Compare Revisions

this

Change Revisions

Revision 489805:

Revision 489805 by kscarfone on

Revision 496965:

Revision 496965 by kiteroa on

Title:
this
this
Slug:
Web/JavaScript/Reference/Operators/this
Web/JavaScript/Reference/Operators/this
Tags:
"JavaScript Reference", "NeedsBrowserCompatibility", "JavaScript", "Guide"
"Guide", "JavaScript Reference", "NeedsBrowserCompatibility", "JavaScript"
Content:

Revision 489805
Revision 496965
t14      In most cases, the value of <code>this</code> is determinedt14      In most cases, the value of <code>this</code> is determined
> by how a function is called. It can't be set by assignment durin> by how a function is called. It can't be set by assignment durin
>g execution, and it can be different each time the function is ca>g execution, and it may be different each time the function is ca
>lled. ES5 introduced the <code><a href="/en-US/docs/JavaScript/Re>lled. ES5 introduced the <code><a href="/en-US/docs/JavaScript/Re
>ference/Global_Objects/Function/bind" title="en-US/docs/JavaScrip>ference/Global_Objects/Function/bind" title="en-US/docs/JavaScrip
>t/Reference/Global_Objects/Function/bind">bind</a></code> method >t/Reference/Global_Objects/Function/bind">bind</a></code> method 
>to <a href="/en-US/docs/JavaScript/Reference/Operators/this#Bound>to <a href="/en-US/docs/JavaScript/Reference/Operators/this#Bound
>_functions" title="https://developer.mozilla.org/en-US/docs/JavaS>_functions" title="https://developer.mozilla.org/en-US/docs/JavaS
>cript/Reference/Operators/Special/this#Bound_functions">set the v>cript/Reference/Operators/Special/this#Bound_functions">set the v
>alue of a function's <code>this</code> regardless of how it's cal>alue of a function's <code>this</code> regardless of how it's cal
>led</a>.>led</a>.

Back to History