In Javascript class instance method, you must use the this variable to access instance variables. For instance:
1
|
|
as oppose to in C++:
1
|
|
One way to get around with using this for every instance variable is as follow:
1 2 3 4 5 |
|
In Javascript class instance method, you must use the this variable to access instance variables. For instance:
1
|
|
as oppose to in C++:
1
|
|
One way to get around with using this for every instance variable is as follow:
1 2 3 4 5 |
|