{"ScriptPreparationCode":"var str = \u0027abc\u0027;\r\nstr = str.charAt(Math.floor(Math.random() * 3));","TestCases":[{"Name":"If - Else","Code":"let x;\r\nif(str === \u0027a\u0027){\r\n \tx = \u0027A\u0027; \r\n} else if (str === \u0027b\u0027){\r\n \tx = \u0027B\u0027; \r\n} else if (str === \u0027c\u0027){\r\n \tx = \u0027C\u0027; \r\n}","IsDeferred":false},{"Name":"Switch - Case","Code":"let x;\r\nswitch (str) {\r\n case \u0027a\u0027: x = \u0027A\u0027; break;\r\n case \u0027b\u0027: x = \u0027B\u0027; break;\r\n case \u0027c\u0027: x = \u0027C\u0027; break;\r\n}","IsDeferred":false},{"Name":"Object literals","Code":"var objLiteral = {\r\n a: \u0027A\u0027,\r\n b: \u0027B\u0027,\r\n c: \u0027C\u0027,\r\n}\r\n\r\nlet x = objLiteral[str];","IsDeferred":false},{"Name":"ternary-operator","Code":"let x = str === \u0027a\u0027 ? \u0027A\u0027 : str === \u0027b\u0027 ? \u0027B\u0027 : str === \u0027c\u0027 ? \u0027C\u0027 : \u0027nothing\u0027","IsDeferred":false}]}