{"ScriptPreparationCode":"function manual(date) {\r\n const year = date.getFullYear();\r\n const month = date.getMonth();\r\n const isLeapYear = ((year % 4 === 0 \u0026\u0026 year % 100 !== 0) || year % 400 === 0);\r\n\r\n return [31, (isLeapYear ? 29 : 28), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month];\r\n}\r\n\r\nfunction withDate(date){\r\n var d= new Date(date.getFullYear(), date.getMonth()\u002B1, 0);\r\n return d.getDate();\r\n}\r\n\r\nvar date = new Date(2000, 1, 1);","TestCases":[{"Name":"manual","Code":"for(var i=0; i\u003C100; \u002B\u002Bi) {\r\n manual(date);\r\n}","IsDeferred":false},{"Name":"withDate","Code":"for(var i=0; i\u003C100; \u002B\u002Bi) {\r\n withDate(date);\r\n}","IsDeferred":false}]}