{"ScriptPreparationCode":"function splitJoin(str) {\r\n return str.split(\u0027\u0027).join(\u0027 \u0027);\r\n}\r\n\r\nfunction loopA(str) {\r\n let acc = \u0027\u0027;\r\n for(let i = 0, l = str.length; i \u003C l; i\u002B\u002B) {\r\n acc \u002B= i ? \u0027 \u0027 \u002B str[i] : str[i];\r\n }\r\n return acc;\r\n}\r\n\r\nfunction loopB(str) {\r\n let acc = \u0027\u0027;\r\n for(let i = 0, l = str.length; i \u003C l; i\u002B\u002B) {\r\n acc \u002B= str[i] \u002B \u0027 \u0027;\r\n }\r\n return acc.slice(0, acc.length - 1);\r\n}\r\n\r\nfunction reduceS(str) {\r\n return Array.prototype.reduce.call(str, (acc, n) =\u003E acc \u002B \u0027 \u0027 \u002B n);\r\n}","TestCases":[{"Name":"split","Code":"splitJoin(\u0027hello world\u0027)","IsDeferred":false},{"Name":"loop A","Code":"loopA(\u0027hello world\u0027)","IsDeferred":false},{"Name":"loop B","Code":"loopB(\u0027hello world\u0027)","IsDeferred":false},{"Name":"reduce","Code":"reduceS(\u0027hello world\u0027)","IsDeferred":false}]}