+ 1
return 2016-this.age; what's - doing there?
4 Respostas
+ 6
I think it will return date of birth:
2016 - 26 = 1990
Assuming age is 26.
+ 2
return, it will return specified value after return.
this.age, get value property (age) from current constructor.
For example : this.age = 1990;
The code will return the result of
2016 - 1990 = 26
So, it will return 26
+ 1
got this tnxs fellows
0
boa noite