{"ScriptPreparationCode":null,"TestCases":[{"Name":"switch case","Code":"function thing(e) {\r\n switch (e) {\r\n case 0:\r\n return \u00220\u0022;\r\n\r\n case 1:\r\n return \u00221\u0022;\r\n\r\n case 2:\r\n return \u00222\u0022;\r\n\r\n case 3:\r\n return \u00223\u0022;\r\n \r\n default: \r\n return \u0022\u0022;\r\n }\r\n}\r\n\r\nthing(0), thing(2), thing(6)","IsDeferred":false},{"Name":"bounce patttern","Code":"function bounce(x) \r\n{\r\n if (x === 0) return \u00220\u0022;\r\n if (x === 1) return \u00221\u0022;\r\n if (x === 2) return \u00222\u0022;\r\n if (x === 3) return \u00223\u0022;\r\n \r\n return \u0022\u0022\r\n}\r\nbounce(0), bounce(2), bounce(6)","IsDeferred":false},{"Name":"ternary","Code":"function bounce(x) {\r\n return 0 === x ? \u00220\u0022 : 1 === x ? \u00221\u0022 : 2 === x ? \u00222\u0022 : 3 === x ? \u00223\u0022 : \u0022\u0022;\r\n}\r\n\r\nbounce(0), bounce(2), bounce(6)","IsDeferred":false}]}