+ 31

explain "this" keyword in javascript !!! ???

10th Jun 2017, 10:24 AM
Hatem Dbais
Hatem Dbais - avatar
4 ответов
10th Jun 2017, 10:30 AM
Igor Makarsky
Igor Makarsky - avatar
+ 26
thanks bro
10th Jun 2017, 10:39 AM
Hatem Dbais
Hatem Dbais - avatar
+ 14
In JavaScript this always refers to the “owner” of the function we're executing, or rather, to the object that a function is a method of. When wedefine our faithful function doSomething() in a page, its owner is the page, or rather, the window object (or global object) of JavaScript. https://www.w3schools.com/js/js_object_definition.asp -Google
10th Jun 2017, 10:32 AM
Kailash Loncha
Kailash Loncha - avatar
+ 12
welcome
10th Jun 2017, 11:38 AM
Kailash Loncha
Kailash Loncha - avatar