Sha256: be9f5232fe6df0d6b38df99e35f5726aa7c39629d2f5f05b254a609544b47e55
Contents?: true
Size: 352 Bytes
Versions: 72
Compression:
Stored size: 352 Bytes
Contents
/** * Here is an example solution for the Leap exercise */ component { /** * @year The input year to consider * * @returns A boolean for whether the inputted year is true or false */ function isLeapYear( year ) { if( year % 400 == 0 ) { return true; } else if( year % 4 == 0 && year % 100 != 0 ) { return true; } return false; } }
Version data entries
72 entries across 71 versions & 1 rubygems