Answers for "Space Age"

0

Space Age

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)));
Posted by: Guest on June-13-2021

Browse Popular Code Answers by Language