{"ScriptPreparationCode":"function getRandomInt(max) {\r\n return Math.floor(Math.random() * Math.floor(max));\r\n}\r\n\r\nvar data = [];\r\nfor(var i = 0; i \u003C 1000; i\u002B\u002B){\r\n data.push({value:getRandomInt(100)});\r\n}","TestCases":[{"Name":"declaration inside for loop","Code":"for (let i = 0; i \u003C 1000; i\u002B\u002B) {\r\n\tlet array1 = [];\r\n\tlet array2 = [];\r\n\tlet array3 = [];\r\n\r\n\tarray1.push(... data.filter(n =\u003E n \u003E 50).map(n =\u003E n \u002B 1));\r\n\tarray2.push(... data.filter(n =\u003E n \u003E 50).map(n =\u003E n \u002B 1));\r\n\tarray3.push(... data.filter(n =\u003E n \u003E 50).map(n =\u003E n \u002B 1));\r\n}","IsDeferred":false},{"Name":"declaration outside for loop","Code":"let array1 = [];\r\nlet array2 = [];\r\nlet array3 = [];\r\nfor (let i = 0; i \u003C 1000; i\u002B\u002B) {\r\n\tarray1 = [];\r\n\tarray2 = [];\r\n\tarray3 = [];\r\n\t\r\n\tarray1.push(... data.filter(n =\u003E n \u003E 50).map(n =\u003E n \u002B 1));\r\n\tarray2.push(... data.filter(n =\u003E n \u003E 50).map(n =\u003E n \u002B 1));\r\n\tarray3.push(... data.filter(n =\u003E n \u003E 50).map(n =\u003E n \u002B 1));\r\n}","IsDeferred":false}]}