JavaScript determines whether the specified year is a leap year

From , 4 Years ago, written in JavaScript, viewed 55 times.
URL https://pastebin.vip/view/b5507f51
  1. function isLeapYear(year){
  2.    
  3.     if(year%400==0){
  4.         return false;    
  5.     }else if(year%4==0){
  6.         return true;
  7.     }else{
  8.         return false;
  9.     }
  10. }

Reply to "JavaScript determines whether the specified year is a leap year"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website