Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

use of this keyword in js

The JavaScript this keyword refers to the object it belongs to. 
It has different values depending on where it is used: In a method, 
this refers to the owner object. Alone, this refers to the global 
object.
 
PREVIOUS NEXT
Tagged: #keyword #js
ADD COMMENT
Topic
Name
7+7 =