Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //create a function named yearsTillRetiring,
- //create a constant named age to which you assign the participant's age, use the function participantAge() from the previous task
- //create a constant named retirement to which you will assign a number symbolizing the age remaining until retirement
- //add a conditional statement to display e.g. Alex retires in 40 years where Alex and 40 are variables
- //for a person who is already retired should display, for example, Alex is already retired
- //call the function yearsTillRetiring() passing the necessary parameters to it
Add Comment
Please, Sign In to add comment