+ 1

What is this key word in js?

Please explain in simple language

14th Mar 2021, 5:22 PM
Prameet Kumar
Prameet Kumar - avatar
4 odpowiedzi
+ 3
I have not learnt JavaScript before but this article I think will help "JavaScript this" https://www.w3schools.com/js/js_this.asp Happy coding😉
14th Mar 2021, 5:31 PM
!Derrickee
!Derrickee - avatar
+ 2
"this" refers to the current object and that's it :)
15th Mar 2021, 12:10 AM
D_Stark
D_Stark - avatar
+ 1
all that you want to know about 'this' keyword should be here: https://web.dev/javascript-this/
14th Mar 2021, 5:51 PM
visph
visph - avatar
0
If you use python, it's like "self" in python (or the equivalent name that you use as the first parameter of __init__)
15th Mar 2021, 4:40 PM
Lewis Searle
Lewis Searle - avatar