I have such a probelm. It consists of two parts
Write a JS code that determines whether a given year is a leap year.
Write a JS code for a program that determines the number of days in the given month of a given year by utilizing the solution to the previous problem as a predefined process/function call.
Thank you in advance.