📅  最后修改于: 2022-03-11 14:57:59.389000             🧑  作者: Mango
exercism submit space-age.js
const calcAge = function (seconds, period) {
const age = seconds / (period * 365.25 * 24 * 60 * 60);
return age;
};
console.log(Math.trunc(calcAge(1000000000, 1.8808158)));