+ 1

return 2016-this.age; what's - doing there?

15th Jul 2016, 4:25 AM
Afzaal Arif
Afzaal Arif - avatar
4 Answers
+ 6
I think it will return date of birth: 2016 - 26 = 1990 Assuming age is 26.
15th Jul 2016, 10:34 AM
ZinC
ZinC - avatar
+ 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
15th Jul 2016, 6:09 AM
Ayub Narwidian Adiputra
Ayub Narwidian Adiputra - avatar
+ 1
got this tnxs fellows
15th Jul 2016, 2:15 PM
Afzaal Arif
Afzaal Arif - avatar
0
boa noite
21st Jul 2016, 2:17 AM
Lourdes Tavare Lourdes Tavares
Lourdes Tavare Lourdes Tavares - avatar