+ 2

question

How can calculate years of birth?? I dont underestand 2016-this.age???

14th Nov 2017, 9:22 AM
sara
sara - avatar
1 Answer
+ 15
"2016 - this.age" gives you the birth year. But now as we're in 2017, we must change it as "2017 - this.age". For example: if your age is 22, "2017 - 22" would output 1995 (the year you were born in.)
14th Nov 2017, 9:39 AM
Dev
Dev - avatar