A program that assists in finding leap year using javascript function with modulos, true, false, and if statements
Behavior | Input | Output |
---|---|---|
The program should return when a year is not a leap year. | 1993 | False |
The program should return 'true' for years divisible by 4, since those are leap years | 2004 | True |
The program should return 'false' for years divisible by 100, since those are not leap years. | 1900 | False |
The program should return 'true' for years divisible by 400, since those are leap years. | 2000 | True |
- Open application
- Enter information
- Press leap
Message us via github with any issues
html, css, js
MIT
Copyright (c) 2016 Dominic Montelongo and Abdellah Ramadan