{"ScriptPreparationCode":"var str = 1;\r\nstr = Math.floor(Math.random() * 3);\r\n\r\nvar objLiteral = {\r\n 0: function() {\r\n console.log(\u0027A\u0027);\r\n },\r\n 1: function() {\r\n console.log(\u0027B\u0027);\r\n },\r\n 2: function() {\r\n console.log(\u0027C\u0027);\r\n }\r\n}","TestCases":[{"Name":"Switch","Code":"switch (str) {\r\n case 0: console.log(\u0027A\u0027); break;\r\n case 1: console.log(\u0027B\u0027); break;\r\n case 2: console.log(\u0027C\u0027); break;\r\n}","IsDeferred":false},{"Name":"Object Literal","Code":"objLiteral[str]();","IsDeferred":false}]}