{"ScriptPreparationCode":"const alphabet = [\u0022A\u0022, \u0022B\u0022, \u0022C\u0022, \u0022D\u0022, \u0022E\u0022, \u0022F\u0022, \u0022G\u0022, \u0022H\u0022, \u0022I\u0022, \u0022J\u0022, \u0022K\u0022, \u0022L\u0022, \u0022M\u0022, \u0022N\u0022, \u0022O\u0022, \u0022P\u0022, \u0022Q\u0022, \u0022R\u0022, \u0022S\u0022, \u0022T\u0022, \u0022U\u0022, \u0022V\u0022, \u0022W\u0022, \u0022X\u0022, \u0022Y\u0022, \u0022Z\u0022];\r\n\r\n\r\nfunction generateItems(numberOfItems){\r\n const result = [];\r\n for ( var i = 0; i \u003C numberOfItems ; i\u002B\u002B ) {\r\n result.push( alphabet[Math.floor(Math.random() * alphabet.length)]);\r\n }\r\n return result;\r\n}\r\n\r\nconst list = generateItems(1000000);","TestCases":[{"Name":"Initial call","Code":"function myFunc(){\r\n for(let i = 0; i \u003C list.length -1; i \u002B\u002B){\r\n list[i] = list[i].toLowerCase()\r\n }\r\n}","IsDeferred":false},{"Name":"Multiple calls","Code":"function myFunc(){\r\n for(let i = 0; i \u003C list.length -1; i \u002B\u002B){\r\n list[i] = list[i].toLowerCase()\r\n }\r\n \tfor(let i = 0; i \u003C list.length -1; i \u002B\u002B){\r\n list[i] = list[i].toLowerCase()\r\n }\r\n \tfor(let i = 0; i \u003C list.length -1; i \u002B\u002B){\r\n list[i] = list[i].toLowerCase()\r\n }\r\n}","IsDeferred":false}]}