-Annie-

LeapYear

May 24th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function isLeap(year) {
  2.     if (year % 4 == 0 & year % 100 != 0 || year % 400 == 0) {
  3.         console.log("yes");
  4.     }
  5.     else {
  6.         console.log("no");
  7.     }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment