‘this’ in JavaScriptby@happymishra66
9,682 reads
9,682 reads

‘this’ in JavaScript

by Rupesh Mishra3mMay 4th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In most cases, the value of <em>this </em>is determined by how a function is called. It can’t be set by assignment during execution, and it may be different each time the function is called. You can change <em>this </em>context through&nbsp;<em>.call()</em>,&nbsp;<em>.apply()</em> and&nbsp;<em>.bind().</em> Value of <em>this</em> is equal to the value of the object which invokes the function. <em>this</em> is not assigned a value until an object invokes the function where <em>this</em> is defined.

Company Mentioned

Mention Thumbnail
featured image - ‘this’ in JavaScript
Rupesh Mishra HackerNoon profile picture
Rupesh Mishra

Rupesh Mishra

@happymishra66

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite