Challenge 1: Age Difference
Write a function ageDifference
that returns the difference in age between the oldest and youngest member of a family.
It should take two parameters: youngest
, and oldest
. These will always be objects. Use the following two as your test cases:
Successfully calling the function will look like this:
Last updated