Yngvarr

Generation

generate functionMon, 26 Dec 2022

текущий месяц номер

function getMonthNumber(month){ month = month.toLowerCase(); let months = { "march": 3, "april": 4, "may": 5, "june": 6, "july": 7, "august": 8, "september": 9, "october": 10, "november": 11, "december": 12, "january": 1, "february": 2 } return months[month]; } getMonthNumber("january")

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant