Project: Seconds in a Year
Write a program that computes the number of seconds in a year. Use named constants for the various factors you need like SECONDS_PER_MINUTE
or MINUTES_PER_HOUR
. Our Gregorian calendar year is 365.2425 days long.
Output
$ node SecondsPerYear.js
Seconds per year: 31556952