#!/usr/bin/env node; /****************************************************************************** * This program computes the number of seconds in a year. * * Copyright © 2016 Richard Lesh. All rights reserved. *****************************************************************************/ const SECONDS_PER_MINUTE = 60; const MINUTES_PER_HOUR = 60; const HOURS_PER_DAY = 24; const DAYS_PER_YEAR = 365.2425; const main = async () => { console.log(["Seconds per year: ", Math.trunc(SECONDS_PER_MINUTE * MINUTES_PER_HOUR * HOURS_PER_DAY * DAYS_PER_YEAR)].join('')); } main().catch( e => { console.error(e) } );