Katzenjahre in Menschenjahre umrechnen

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