{"ScriptPreparationCode":"var testcases = Array(1000).fill(0).map(() =\u003E Array(1000).fill(0).map(() =\u003E Math.floor(Math.random() * 10).toString()).join(\u0022\u0022));","TestCases":[{"Name":"split reverse join","Code":"for (let n = 0; n \u003C 1000; n\u002B\u002B) {\r\n const testcase = testcases[n];\r\n const result = testcase.split(\u0022\u0022).reverse().join(\u0022\u0022);\r\n}","IsDeferred":false},{"Name":"traditional for loop","Code":"for (let n = 0; n \u003C 1000; n\u002B\u002B) {\r\n const testcase = testcases[n];\r\n let result = \u0022\u0022;\r\n for (let i = testcase.length - 1; i \u003E= 0; i--) {\r\n result \u002B= testcase[i];\r\n }\r\n}","IsDeferred":false},{"Name":"for of","Code":"for (let n = 0; n \u003C 1000; n\u002B\u002B) {\r\n const testcase = testcases[n];\r\n let result = \u0022\u0022;\r\n for (const c of testcase) {\r\n result = c \u002B result;\r\n }\r\n}","IsDeferred":false},{"Name":"traditional for loop and join","Code":"for (let n = 0; n \u003C 1000; n\u002B\u002B) {\r\n const testcase = testcases[n];\r\n let resultArr = [];\r\n for (let i = testcase.length - 1; i \u003E= 0; i--) {\r\n resultArr.push(testcase[i]);\r\n }\r\n const result = resultArr.join(\u0022\u0022);\r\n}","IsDeferred":false},{"Name":"spread reverse join","Code":"for (let n = 0; n \u003C 1000; n\u002B\u002B) {\r\n const testcase = testcases[n];\r\n const result = [...testcase].reverse().join(\u0022\u0022);\r\n}","IsDeferred":false}]}