Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- This script returns whether or not the given year is a Leap Year.
- Leap Years are every 4 years, except for centurial years not evenly
- divisible by 400.
- */
- var year;
- year = argument0;
- return ((year mod 4 == 0 && year mod 100 != 0) || (year mod 400 == 0));
Advertisement
Add Comment
Please, Sign In to add comment