{"ScriptPreparationCode":null,"TestCases":[{"Name":"Switch case","Code":"const role = \u0022parent\u0022;\r\n switch (role) {\r\n case \u0022child\u0022:\r\n console.log(\u0022child\u0022);\r\n break;\r\n case \u0022parent\u0022:\r\n console.log(\u0022parent\u0022);\r\n break;\r\n case \u0022family\u0022:\r\n console.log(\u0022family\u0022);\r\n break;\r\n }","IsDeferred":false},{"Name":"if-else","Code":"const role = \u0022parent\u0022;\r\n if (a == \u0022child\u0022) {\r\n console.log(\u0022child\u0022);\r\n return;\r\n } \r\n\t\tif (a == \u0022parent\u0022) {\r\n console.log(\u0022parent\u0022)\r\n return;\r\n }\r\n if (a == \u0022family\u0022) {\r\n console.log(\u0022family\u0022)\r\n\t\t\t\treturn;\r\n }\r\n \r\n","IsDeferred":false}]}