{"version":"1.0","type":"rich","title":"Get number days in specified month","description":"This example calculates the number of days in a given month for any specified year and month. It shows how leap years affect February’s length, returning either 28 or 29 days. The code uses JavaScript’s `Date` object to detect leap years by checking if February 29th exists in the given year. It then maps the month index to a hardcoded array of day counts, with the leap-year adjustment applied only to February. The logic references Stack Overflow solutions for both day-count and leap-year detection.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-75e3039325038e55b911?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}