const required = () => { throw new Error('Missing parameter');}; const getAges = (yearOfBirth = required()) => new Date().getFullYear() - yearOfBirth;
`getAges()`
`Missing parameter`