Sha256: f1081d1b062e8b4d86066ef6f3ac5b58da40742910be9d304719af34beba0af8
Contents?: true
Size: 350 Bytes
Versions: 74
Compression:
Stored size: 350 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 leapYear( year ) { if( year % 400 == 0 ) { return true; } else if( year % 4 == 0 && year % 100 != 0 ) { return true; } return false; } }
Version data entries
74 entries across 74 versions & 1 rubygems