0

How to show a particular thing after n no. of years..?

For e.g. age after 1,2 or n no. of years...For more detail please check out the code on my profile..I would appreciate any help.Thanks in Advance!!

29th Dec 2017, 4:50 PM
R I S H A B H
R I S H A B H - avatar
6 Answers
+ 6
alert("Hi "+ name +", you will be "+ (parseInt(age)+1) + " in a year ...");
29th Dec 2017, 5:12 PM
Hatsy Rei
Hatsy Rei - avatar
+ 7
alert("Hi "+ name +", you will be "+ (age+n) + "in " + n + " year(s)..."); where n is your preferred amount of years.
29th Dec 2017, 4:59 PM
Hatsy Rei
Hatsy Rei - avatar
+ 2
Yup..it worked thanks a lot...😃
29th Dec 2017, 5:16 PM
R I S H A B H
R I S H A B H - avatar
- 1
tysm...
29th Dec 2017, 5:01 PM
R I S H A B H
R I S H A B H - avatar
- 1
Hey, Hatsy..
29th Dec 2017, 5:04 PM
R I S H A B H
R I S H A B H - avatar
- 1
I get incorrect results using the code above, also..for eg..If the specified age is 10 , the final output shows 101..Help!!😞
29th Dec 2017, 5:06 PM
R I S H A B H
R I S H A B H - avatar