function isleap(year) { var yr = year.value; var isLeap = false; if (yr % 400 == 0 || (yr % 100 != 0 && yr % 4 == 0)) { isLeap = true; } else { isLeap = false; } return isLeap; }
No comments:
Post a Comment