(() => {
const today = new Date();
const birthYear= new Date().setFullYear(prompt('Введите год рождения'));
const diffInMicroseconds = today - birthYear;
const diffInDays = Math.floor(diffInMicroseconds / (24 * 3600 * 1000));
alert(diffInDays);
})();