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!!
6 Antworten
+ 6
alert("Hi "+ name +", you will be "+ (parseInt(age)+1) + " in a year ...");
+ 7
alert("Hi "+ name +", you will be "+ (age+n) + "in " + n + " year(s)...");
where n is your preferred amount of years.
+ 2
Yup..it worked thanks a lot...😃
- 1
tysm...
- 1
Hey, Hatsy..
- 1
I get incorrect results using the code above, also..for eg..If the specified age is 10 , the final output shows 101..Help!!😞