{"ScriptPreparationCode":"// Create sample data\r\nvar array = [1,2,3,4,5,6,7,8,9,0];\r\n\r\nvar manipulateFn = num =\u003E {\r\n\treturn num * 2 * 3;\r\n}","TestCases":[{"Name":"for","Code":"var newArray = [];\r\nfor(var i=0; i \u003C array.length; i\u002B\u002B) {\r\n\tnewArray.push(manipulateFn(i));\r\n};","IsDeferred":false},{"Name":"map","Code":"var newArray = array.map( i =\u003E manipulateFn(i));","IsDeferred":false},{"Name":"forEach","Code":"var newArray = [];\r\narray.forEach( i =\u003E {\r\n\tnewArray.push(manipulateFn(i));\r\n});","IsDeferred":false}]}