About 'this' keyword | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

About 'this' keyword

I've been reading articles trying to understand the use for the 'this' keyword. Can someone please explain it to me what its use is, give me some code without using this and using this.

3rd Aug 2022, 1:50 PM
Tristan
1 ответ
+ 1
The this keyword is tied to object oriented programming. It is important to have an idea of classes to understand its use. this refers to the object's "self": Its associated properties and methods.
3rd Aug 2022, 2:06 PM
Lisa
Lisa - avatar