functionleapyear(year){if(((year%400==0)||(year%100!=0))&&(year%4==0)){returntrue;}else{returnfalse;}}