{"ScriptPreparationCode":"var str = \u0027abc\u0027;\r\nstr = str.charAt(Math.floor(Math.random() * 3));","TestCases":[{"Name":"Switch","Code":"const getString = (randomString) =\u003E {\r\n switch (randomString) {\r\n case \u0027a\u0027:\r\n return \u0027a\u0027;\r\n case \u0027b\u0027:\r\n return \u0027b\u0027;\r\n case \u0027c\u0027:\r\n return \u0027c\u0027;\r\n case \u0027d\u0027:\r\n return \u0027d\u0027;\r\n case \u0027e\u0027:\r\n return \u0027e\u0027;\r\n case \u0027f\u0027:\r\n return \u0027f\u0027;\r\n case \u0027g\u0027:\r\n return \u0027g\u0027;\r\n case \u0027h\u0027:\r\n return \u0027h\u0027;\r\n case \u0027i\u0027:\r\n return \u0027i\u0027;\r\n case \u0027j\u0027:\r\n return \u0027j\u0027;\r\n default: {\r\n return \u0027default\u0027;\r\n }\r\n }\r\n};\r\n\r\nconsole.log(getString(str));","IsDeferred":false},{"Name":"Object Literal","Code":"const objectLiteral = {\r\n a: \u0027a\u0027,\r\n b: \u0027b\u0027,\r\n c: \u0027c\u0027,\r\n d: \u0027d\u0027,\r\n e: \u0027e\u0027,\r\n f: \u0027f\u0027,\r\n g: \u0027g\u0027,\r\n h: \u0027h\u0027,\r\n i: \u0027i\u0027,\r\n j: \u0027j\u0027,\r\n};\r\n\r\nconsole.log(objectLiteral[str] || \u0027default\u0027);","IsDeferred":false}]}