Advertisement
Spocoman

05. Leap Year

Jan 11th, 2022
95
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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement