/**
 * typedef {{name:string, age:number, job:string}} Person
 *
 */
const persons = [
  { name: 'John', age: 30, job: 'Developer' },
  { name: 'Mary', age: 25, job: 'Designer' },
  { name: 'Peter', age: 27, job: 'Developer' },
  { name: 'Jane', age: 22, job: 'Designer' },
  { name: 'Bob', age: 33, job: 'Developer' },
  { name: 'Alice', age: 35, job: 'Manager' },
  { name: 'Tim', age: 32, job: 'Designer' },
  { name: 'Sara', age: 21, job: 'Designer' },
  { name: 'Tom', age: 34, job: 'Developer' },
  { name: 'Alex', age: 24, job: 'Manager' },
  { name: 'John', age: 30, job: 'Manager' },
  { name: 'Mary', age: 25, job: 'Designer' },
  { name: 'Peter', age: 27, job: 'Developer' },
  { name: 'Jane', age: 22, job: 'Designer' },
  { name: 'Bob', age: 33, job: 'Developer' },
  { name: 'Alice', age: 35, job: 'Manager' },
  { name: 'Tim', age: 32, job: 'Designer' },
  { name: 'Sara', age: 21, job: 'Designer' },
  { name: 'Tom', age: 34, job: 'Developer' },
  { name: 'Alex', age: 24, job: 'Developer' },
];

/**
 * averageAge.
 *
 * @param {Person[]} persons
 */
function averageAge(persons) {
  // placehlder
}

console.log('Average age:', averageAge(persons));

/**
 * listJobs.
 *
 * @param {Person[]} persons
 */
function listJobs(persons) {
  // placehlder
}

console.log('List of jobs:', listJobs(persons));
