{"ScriptPreparationCode":"var str = \u0027abc\u0027;\r\nstr = str.charAt(Math.floor(Math.random() * 3));","TestCases":[{"Name":"Switch","Code":"function test (str) {\r\n switch (str) {\r\n case \u0027a\u0027: return \u0027A\u0027; break;\r\n case \u0027b\u0027: return \u0027B\u0027; break;\r\n case \u0027c\u0027: return \u0027C\u0027; break;\r\n }\r\n}\r\n\r\nconsole.log(test(str));","IsDeferred":false},{"Name":"Object Function","Code":"const obj = {\r\n a: () =\u003E \u0027A\u0027,\r\n b: () =\u003E \u0027B\u0027,\r\n c: () =\u003E \u0027C\u0027\r\n};\r\n\r\nconsole.log(obj[str]());","IsDeferred":false},{"Name":"Object Property","Code":"const obj = {\r\n a: \u0027A\u0027,\r\n b: \u0027B\u0027,\r\n c: \u0027C\u0027\r\n};\r\n\r\nconsole.log(obj[str]);","IsDeferred":false}]}