Liliana797979

days in a month - js advanced

Sep 14th, 2021
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function daysInMonth(month, year) {
  2.     let d = new Date(month, year);
  3.     console.log(d);
  4. }
  5.  
  6. daysInMonth(1, 2012);
Advertisement
Add Comment
Please, Sign In to add comment