+ 1

What is the main function of the this keyword

javascript

7th Jan 2018, 3:02 PM
Zak Balde
2 Respuestas
+ 1
'this' keyword? It refers to the current object. For example, see this JQuery code: $("#potato"). click(function (){ $("potato").css('color','red'); //you can also write this line as this.css('color','red'); });
7th Jan 2018, 8:34 PM
Manu Karki
Manu Karki - avatar
- 1
What keyword?
7th Jan 2018, 6:04 PM
Robyn A
Robyn A - avatar