{"ScriptPreparationCode":"var animal = \u0022dog\u0022","TestCases":[{"Name":"Switch","Code":"function test(animal) {\r\n switch(animal){\r\n case \u0027cat\u0027: return \u0027Kitten\u0027\r\n case \u0027cattle\u0027: return \u0027Calf\u0027\r\n case \u0027cheetah\u0027: return \u0027Cub\u0027\r\n case \u0027micio\u0027: return \u0027Ciccio\u0027\r\n case \u0027liro\u0027: return \u0027Piro\u0027\r\n case \u0027gnappo\u0027: return \u0027Guappo\u0027\r\n case \u00271\u0027: return \u00271\u0027\r\n case \u00272\u0027: return \u00272\u0027\r\n case \u00273\u0027: return \u00273\u0027\r\n case \u00274\u0027: return \u00274\u0027\r\n case \u00275\u0027: return \u00275\u0027\r\n case \u00276\u0027: return \u00276\u0027\r\n case \u00277\u0027: return \u00277\u0027\r\n case \u00278\u0027: return \u00278\u0027\r\n case \u00279\u0027: return \u00279\u0027\r\n case \u002710\u0027: return \u002710\u0027\r\n case \u002711\u0027: return \u002711\u0027\r\n case \u002712\u0027: return \u002712\u0027\r\n case \u002713\u0027: return \u002713\u0027\r\n case \u002714\u0027: return \u002714\u0027\r\n case \u002715\u0027: return \u002715\u0027\r\n case \u002716\u0027: return \u002716\u0027\r\n case \u002717\u0027: return \u002717\u0027\r\n case \u002718\u0027: return \u002718\u0027\r\n case \u002719\u0027: return \u002719\u0027\r\n case \u0027dog\u0027: return \u0027Pup\u0027\r\n default: return \u0022I don\u0027t know that\u0022\r\n }\r\n}\r\n\r\ntest(animal);","IsDeferred":false},{"Name":"Object Literal","Code":"function test(animal) {\r\n var babyAnimal = {\r\n cat:\u0027Kitten\u0027,\r\n cattle:\u0027Calf\u0027,\r\n cheetah:\u0027Cub\u0027,\r\n micio: \u0027Ciccio\u0027,\r\n liro: \u0027Piro\u0027,\r\n gnappo: \u0027Guappo\u0027,\r\n \u00271\u0027: \u00271\u0027,\r\n \u00272\u0027: \u00272\u0027,\r\n \u00273\u0027: \u00273\u0027,\r\n \u00274\u0027: \u00274\u0027,\r\n \u00275\u0027: \u00275\u0027,\r\n \u00276\u0027: \u00276\u0027,\r\n \u00277\u0027: \u00277\u0027,\r\n \u00278\u0027: \u00278\u0027,\r\n \u00279\u0027: \u00279\u0027,\r\n \u002710\u0027: \u002710\u0027,\r\n \u002711\u0027: \u002711\u0027,\r\n \u002712\u0027: \u002712\u0027,\r\n \u002713\u0027: \u002713\u0027,\r\n \u002714\u0027: \u002714\u0027,\r\n \u002715\u0027: \u002715\u0027,\r\n \u002716\u0027: \u002716\u0027,\r\n \u002717\u0027: \u002717\u0027,\r\n \u002718\u0027: \u002718\u0027,\r\n \u002719\u0027: \u002719\u0027,\r\n dog:\u0027Pup\u0027\r\n }\r\n return babyAnimal[animal] ?? \u0022I don\u0027t know that\u0022\r\n}\r\n\r\ntest(animal);","IsDeferred":false}]}