{"ScriptPreparationCode":null,"TestCases":[{"Name":"Object","Code":"function getId (id) {\r\n var ocs = {\r\n \u0027210-axhj\u0027: \u0027bestSeller\u0027,\r\n \u0027210-ayze\u0027: \u0027bestSellingUltraSharp\u0027,\r\n \u0027210-bfrp\u0027: \u0027bestSellingAlienware\u0027,\r\n \u0027210-azzr\u0027: \u0027bestSellingGaming\u0027,\r\n \u0027210-axkp\u0027: \u0027bestSellingSSeries\u0027,\r\n \u0027210-bemm\u0027: \u0027bestSellingESeries\u0027,\r\n \u0027210-bbck\u0027: \u0027bestSellingPSeries\u0027,\r\n \u0027210-bejf\u0027: \u0027topRated\u0027,\r\n \u0027210-bdpf\u0027: \u0027topRatedUltraSharp\u0027,\r\n \u0027210-axvg\u0027: \u0027topRatedAlienware\u0027,\r\n \u0027210-azep\u0027: \u0027topRatedGaming\u0027,\r\n \u0027210-azzp\u0027: \u0027topRatedSSeries\u0027,\r\n \u0027210-bbbk\u0027: \u0027topRatedESeries\u0027,\r\n \u0027210-bbcc\u0027: \u0027topRatedPSeries\u0027,\r\n \u0027210-bhym\u0027: \u0027newRelease\u0027,\r\n \u0027210-bhbl\u0027: \u0027newRelease\u0027,\r\n \u0027210-bhxc\u0027: \u0027newRelease\u0027,\r\n \u0027210-bhsm\u0027: \u0027newRelease\u0027,\r\n \u0027210-bhyc\u0027: \u0027newRelease\u0027\r\n };\r\n\r\n return ocs[id] || \u0027none\u0027;\r\n}\r\n\r\ngetId(\u0027210-bhyc\u0027);","IsDeferred":false},{"Name":"IFs","Code":"function getId (id) {\r\n if (id === \u0027210-axhj\u0027) {\r\n return \u0027bestSeller\u0027;\r\n } else if (id === \u0027210-ayze\u0027) {\r\n return \u0027bestSellingUltraSharp\u0027;\r\n } else if (id === \u0027210-bfrp\u0027) {\r\n return \u0027bestSellingAlienware\u0027;\r\n } else if (id === \u0027210-azzr\u0027) {\r\n return \u0027bestSellingGaming\u0027;\r\n } else if (id === \u0027210-axkp\u0027) {\r\n return \u0027bestSellingSSeries\u0027;\r\n } else if (id === \u0027210-bemm\u0027) {\r\n return \u0027bestSellingESeries\u0027;\r\n } else if (id === \u0027210-bbck\u0027) {\r\n return \u0027bestSellingPSeries\u0027;\r\n } else if (id === \u0027210-bejf\u0027) {\r\n return \u0027topRated\u0027;\r\n } else if (id === \u0027210-bdpf\u0027) {\r\n return \u0027topRatedUltraSharp\u0027;\r\n } else if (id === \u0027210-axvg\u0027) {\r\n return \u0027topRatedAlienware\u0027;\r\n } else if (id === \u0027210-azep\u0027) {\r\n return \u0027topRatedGaming\u0027;\r\n } else if (id === \u0027210-azzp\u0027) {\r\n return \u0027topRatedSSeries\u0027;\r\n } else if (id === \u0027210-bbbk\u0027) {\r\n return \u0027topRatedESeries\u0027;\r\n } else if (id === \u0027210-bbcc\u0027) {\r\n return \u0027topRatedPSeries\u0027;\r\n } else if (id === \u0027210-bhym\u0027 || id === \u0027210-bhbl\u0027 || id === \u0027210-bhxc\u0027 || id === \u0027210-bhsm\u0027 || id === \u0027210-bhyc\u0027) {\r\n return \u0027newRelease\u0027;\r\n }\r\n \r\n return \u0027none\u0027; \r\n}\r\n\r\ngetId(\u0027210-bhyc\u0027);","IsDeferred":false},{"Name":"Ternaries","Code":"function getId (id) {\r\n return id === \u0027210-axhj\u0027 ? \u0027bestSeller\u0027 :\r\n id === \u0027210-ayze\u0027 ? \u0027bestSellingUltraSharp\u0027 :\r\n id === \u0027210-bfrp\u0027 ? \u0027bestSellingAlienware\u0027 :\r\n id === \u0027210-azzr\u0027 ? \u0027bestSellingGaming\u0027 :\r\n id === \u0027210-axkp\u0027 ? \u0027bestSellingSSeries\u0027 :\r\n id === \u0027210-bemm\u0027 ? \u0027bestSellingESeries\u0027 :\r\n id === \u0027210-bbck\u0027 ? \u0027bestSellingPSeries\u0027 :\r\n id === \u0027210-bejf\u0027 ? \u0027topRated\u0027 :\r\n id === \u0027210-bdpf\u0027 ? \u0027topRatedUltraSharp\u0027 :\r\n id === \u0027210-axvg\u0027 ? \u0027topRatedAlienware\u0027 :\r\n id === \u0027210-azep\u0027 ? \u0027topRatedGaming\u0027 :\r\n id === \u0027210-azzp\u0027 ? \u0027topRatedSSeries\u0027 :\r\n id === \u0027210-bbbk\u0027 ? \u0027topRatedESeries\u0027 :\r\n id === \u0027210-bbcc\u0027 ? \u0027topRatedPSeries\u0027 :\r\n id === \u0027210-bhym\u0027 ||\r\n id === \u0027210-bhbl\u0027 ||\r\n id === \u0027210-bhxc\u0027 ||\r\n id === \u0027210-bhsm\u0027 ||\r\n id === \u0027210-bhyc\u0027 ? \u0027newRelease\u0027 : \u0027none\u0027;\r\n}\r\n\r\ngetId(\u0027210-bhyc\u0027);","IsDeferred":false},{"Name":"Switch","Code":"function getId (id) {\r\n switch (id) {\r\n case \u0027210-axhj\u0027:\r\n return \u0027bestSeller\u0027;\r\n \r\n case \u0027210-ayze\u0027:\r\n return \u0027bestSellingUltraSharp\u0027;\r\n\r\n case \u0027210-bfrp\u0027:\r\n return \u0027bestSellingAlienware\u0027;\r\n\r\n case \u0027210-azzr\u0027:\r\n return \u0027bestSellingGaming\u0027;\r\n\r\n case \u0027210-axkp\u0027:\r\n return \u0027bestSellingSSeries\u0027;\r\n\r\n case \u0027210-bemm\u0027:\r\n return \u0027bestSellingESeries\u0027;\r\n\r\n case \u0027210-bbck\u0027:\r\n return \u0027bestSellingPSeries\u0027;\r\n\r\n case \u0027210-bejf\u0027:\r\n return \u0027topRated\u0027;\r\n\r\n case \u0027210-bdpf\u0027:\r\n return \u0027topRatedUltraSharp\u0027;\r\n\r\n case \u0027210-axvg\u0027:\r\n return \u0027topRatedAlienware\u0027;\r\n\r\n case \u0027210-azep\u0027:\r\n return \u0027topRatedGaming\u0027;\r\n\r\n case \u0027210-azzp\u0027:\r\n return \u0027topRatedSSeries\u0027;\r\n\r\n case \u0027210-bbbk\u0027:\r\n return \u0027topRatedESeries\u0027;\r\n\r\n case \u0027210-bbcc\u0027:\r\n return \u0027topRatedPSeries\u0027;\r\n\r\n case \u0027210-bhym\u0027:\r\n case \u0027210-bhbl\u0027:\r\n case \u0027210-bhxc\u0027:\r\n case \u0027210-bhsm\u0027:\r\n case \u0027210-bhyc\u0027:\r\n return \u0027newRelease\u0027;\r\n\r\n default:\r\n return \u0027none\u0027;\r\n }\r\n}\r\n\r\ngetId(\u0027210-bhyc\u0027);","IsDeferred":false}]}