Advertisement
Spocoman

05. Leap Year

Jan 13th, 2022
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function leapYear(year) {
  2.  
  3.     console.log(new Date(year, 1, 29).getDate() === 29 ? 'yes' : 'no');
  4.  
  5. }
  6.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement