{"ScriptPreparationCode":null,"TestCases":[{"Name":"recursion","Code":"function reverse(string) {\r\n let result = \u0022\u0022;\r\n let count = string.length\r\n function repeat(times) {\r\n if (times \u003C= 0) {\r\n return 0;\r\n }\r\n times -= 1;\r\n result \u002B= string[times];\r\n repeat(times);\r\n }\r\n repeat(count);\r\n return result;\r\n}\r\nreverse(\u0022JavaScript is awesome\u0022)","IsDeferred":false},{"Name":"for","Code":"const str = \u0022JavaScript is awesome\u0022\r\nlet reversedString = \u0022\u0022;\r\nfor(let i = 0; i \u003C str.length; i\u002B\u002B){\r\n reversedString = str.charAt(i) \u002B reversedString;\r\n}\r\n\r\nreversedString;","IsDeferred":false}]}