0

JS

Still confused what is ‘this ’ keyword What does it do Any one plz answer

20th Apr 2021, 6:40 PM
Raqib
Raqib - avatar
3 Réponses
+ 2
This key word generally points at global window object but it has different behaviors inside arrow funtions and normal functions , this key word also points at one level heigher scope inside a class , so as you see this has many different behaviors depending on where you are using it
21st Apr 2021, 12:14 AM
Nima
+ 1
This keyword helps in calling the current object of the class
20th Apr 2021, 6:44 PM
Atul [Inactive]