Yngvarr

Generation

generate functionMon, 26 Dec 2022

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

function getMonthNumber(monthName) { if (monthName === 'January') { return 1; } else if (monthName === 'February') { return 2; } else if (monthName === 'March') { return 3; } else if (monthName === 'April') { return 4; } else if (monthName === 'May') { return 5; } else if (monthName === 'June') { return 6; } else if (monthName === 'July') { return 7; } else if (monthName === 'August') { return 8; } else if (monthName === 'September') { return 9; } else if (monthName === 'October') { return 10; } else if (monthName === 'November') { return 11; } else if (monthName === 'December') { return 12; } }

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant