How to use the "this" keyword. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to use the "this" keyword.

Can someone please, please, please, in layman terms, explain why we use the "this" keyword? There's literally no explanation for it online that makes sense.

16th Oct 2019, 8:56 PM
SolomonDavid Akesoba
SolomonDavid Akesoba - avatar
5 Answers
+ 2
Sachin kumar then why use it? It's just an alternative to the normal one, right?
18th Oct 2019, 10:16 AM
SolomonDavid Akesoba
SolomonDavid Akesoba - avatar
+ 1
Sachin kumar same thing as using "document.getElementById"?
18th Oct 2019, 6:45 AM
SolomonDavid Akesoba
SolomonDavid Akesoba - avatar
0
You can get html elements id by using this keyword
17th Oct 2019, 11:54 AM
SACHIN.SHERA
SACHIN.SHERA - avatar
17th Oct 2019, 2:34 PM
A͢J
A͢J - avatar
18th Oct 2019, 7:06 AM
SACHIN.SHERA
SACHIN.SHERA - avatar