let date = new Date; currentYear = date.getFullYear(); const getAge = x => currentYear - x; console.log(getAge(1998))