{"ScriptPreparationCode":"var 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}\r\n\r\nvar arrayLiteral = [\r\n function() {\r\n console.log(\u0027A\u0027);\r\n },\r\n function() {\r\n console.log(\u0027B\u0027);\r\n },\r\n function() {\r\n console.log(\u0027C\u0027);\r\n }\r\n];\r\n\r\nfunction usingSwitch(c) {\r\n switch (c) {\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 }\r\n}","TestCases":[{"Name":"Switch","Code":"usingSwitch(Math.floor(Math.random() * 3))","IsDeferred":false},{"Name":"Object Literal","Code":"objLiteral[Math.floor(Math.random() * 3)]();","IsDeferred":false},{"Name":"Array Literal","Code":"arrayLiteral[Math.floor(Math.random() * 3)]();","IsDeferred":false}]}