{"ScriptPreparationCode":"var brands = [\r\n\u0022Mastercard\u0022,\r\n\u0022Visa\u0022,\r\n\u0022AmericanExpress\u0022,\r\n\u0022DinersClub\u0022,\r\n\u0022Discover\u0022,\r\n\u0022JCB\u0022,\r\n\u0022UnionPay\u0022\r\n]\r\nvar brand = brands[Math.floor(Math.random() * 7)];","TestCases":[{"Name":"Object literal","Code":"var map = {\r\nMastercard:\u0022Mastercard\u0022,\r\nVisa:\u0022Visa\u0022,\r\nAmericanExpress:\u0022American Express\u0022,\r\nDinersClub: \u0022Diners Club\u0022,\r\nDiscover: \u0022Discover\u0022,\r\nJCB: \u0022JCB\u0022,\r\nUnionPay:\u0022UnionPay\u0022,\r\n}\r\nmap[brand]","IsDeferred":false},{"Name":"Switch","Code":" switch (brand) {\r\n case \u0022Mastercard\u0022:\r\n return \u0022Mastercard\u0022;\r\n case \u0022Visa\u0022:\r\n return \u0022Visa\u0022;\r\n case \u0022American Express\u0022:\r\n return \u0022AmericanExpress\u0022;\r\n case \u0022Diners Club\u0022:\r\n return \u0022DinersClub\u0022;\r\n case \u0022Discover\u0022:\r\n return \u0022Discover\u0022;\r\n case \u0022JCB\u0022:\r\n return \u0022Jcb\u0022;\r\n case \u0022UnionPay\u0022:\r\n return \u0022UnionPay\u0022;\r\n default:\r\n return \u0022UnknownCard\u0022;\r\n }","IsDeferred":false}]}