{"ScriptPreparationCode":"window.map = {\r\n \u0022first\u0022: \u00221\u0022,\r\n \u0022second\u0022: \u00222\u0022,\r\n \u0022third\u0022: \u00223\u0022,\r\n \u0022forth\u0022: \u00224\u0022,\r\n \u0022fifth\u0022: \u00225\u0022,\r\n \u0022sixth\u0022: \u00226\u0022,\r\n \u0022seventh\u0022: \u00227\u0022,\r\n \u0022eighth\u0022: \u00228\u0022,\r\n \u0022nineth\u0022: \u00229\u0022,\r\n \u0022tenth\u0022: 10\r\n};\r\n\r\nwindow.values = [\u0022first\u0022, \u0022second\u0022, \u0022third\u0022, \u0022forth\u0022, \u0022fifth\u0022, \u0022sixth\u0022, \u0022seventh\u0022, \u0022eighth\u0022, \u0022nineth\u0022, \u0022tenth\u0022];","TestCases":[{"Name":"Switch Case","Code":"const { map, values } = window;\r\n\r\nfunction resolve(value) {\r\n switch (value) {\r\n case \u0022first\u0022:\r\n return \u00221\u0022;\r\n case \u0022second\u0022:\r\n return \u00222\u0022;\r\n case \u0022third\u0022:\r\n return \u00223\u0022;\r\n case \u0022forth\u0022:\r\n return \u00224\u0022;\r\n case \u0022five\u0022:\r\n return \u00225\u0022;\r\n case \u0022sixth\u0022:\r\n return \u00226\u0022;\r\n case \u0022seventh\u0022:\r\n return \u00227\u0022;\r\n case \u0022eighth\u0022:\r\n return \u00228\u0022;\r\n case \u0022nineth\u0022:\r\n return \u00229\u0022;\r\n case \u0022tenth\u0022:\r\n return \u002210\u0022;\r\n }\r\n}\r\n\r\nfor (let i=0; i \u003C values.length; i\u002B\u002B) {\r\n resolve(values[i]);\r\n} \r\n","IsDeferred":false},{"Name":"Map","Code":"const { map, values } = window;\r\n\r\nfunction resolve(value) {\r\n return map[value];\r\n}\r\n\r\nfor (let i=0; i \u003C values.length; i\u002B\u002B) {\r\n resolve(values[i]);\r\n} \r\n","IsDeferred":false}]}