function catYearsToHumanYears(catYears) {
return catYears < 2 ? catYears * 15 : (catYears - 2) * 4 + 24;
}
console.log(catYearsToHumanYears(4)); // output: 32
function catYearsToHumanYears(catYears) {
return catYears < 2 ? catYears * 15 : (catYears - 2) * 4 + 24;
}
console.log(catYearsToHumanYears(4)); // output: 32