{"ScriptPreparationCode":"var str = \u0027abc\u0027;\r\nstr = str.charAt(Math.floor(Math.random() * 3));\r\n\r\nfunction A() {\r\n console.log(\u0027A\u0027);\r\n}\r\n\r\nfunction B() {\r\n console.log(\u0027B\u0027);\r\n}\r\n\r\nfunction C() {\r\n console.log(\u0027C\u0027);\r\n}","TestCases":[{"Name":"Switch","Code":"var act;\r\nswitch (str) {\r\n case \u0027a\u0027: act = A; break;\r\n case \u0027b\u0027: act = B; break;\r\n case \u0027c\u0027: act = C; break;\r\n}\r\nact();","IsDeferred":false},{"Name":"Object Literal","Code":"var objLiteral = {\r\n a: A,\r\n b: B,\r\n c: C\r\n}\r\n\r\nobjLiteral[str]();","IsDeferred":false}]}