0

Should I use "this" every time for creating new method?

21st Apr 2016, 6:21 PM
balukov
balukov - avatar
3 Answers
+ 10
You are using "this." when you use something IN an object. "this." means the object which I am now in. If you sit in a car you can call the car 'this'. You could say 'this.seat' is dirty and everybody now exact that you mean only and exact the car where you are sitting in this moment.
12th May 2016, 10:54 PM
Jurgen Hartwig
+ 2
this is a placeholder for any object that will be created from Class/prototype in JS.
18th Oct 2016, 2:24 PM
Victor Ogudu
Victor Ogudu - avatar
0
well explained JĂźrgen klopp
9th Jun 2016, 7:00 PM
ರಾಜ್
ರಾಜ್ - avatar