> For the complete documentation index, see [llms.txt](https://node-girls.gitbook.io/beginners-javascript/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://node-girls.gitbook.io/beginners-javascript/challenges/challenge-1-age-difference.md).

# 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:

```javascript
var youngest = {
  name: 'Maya',
  age: 13
};
​
var oldest = {
  name: 'Joy',
  age: 83
};
```

Successfully calling the function will look like this:

```javascript
ageDifference(youngest, oldest); // ---> returns 70
```
