Advertisement
TZinovieva

Days In A Month JS Advanced

Sep 14th, 2023
531
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function daysInaMonth(month, year) {
  2.     console.log(new Date(year, month, 0).getDate());
  3. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement