{"ScriptPreparationCode":"var intKey = [0,1,2,3,4,5,6,7,8,9,10]\r\nvar intObj = {0:\u0027zero\u0027, 1:\u0027one\u0027, 2:\u0027two\u0027, 3:\u0027three\u0027, 4:\u0027four\u0027, 5:\u0027five\u0027, 6:\u0027six\u0027, 7:\u0027seven\u0027, 8:\u0027eight\u0027, 9:\u0027nine\u0027, 10:\u0027ten\u0027}\r\nvar strKey = [\u00270\u0027, \u00271\u0027, \u00272\u0027, \u00273\u0027, \u00274\u0027, \u00275\u0027, \u00276\u0027, \u00277\u0027, \u00278\u0027, \u00279\u0027, \u002710\u0027]\r\nvar strObj = {\u00270\u0027:\u0027zero\u0027, \u00271\u0027:\u0027one\u0027, \u00272\u0027:\u0027two\u0027, \u00273\u0027:\u0027three\u0027, \u00274\u0027:\u0027four\u0027, \u00275\u0027:\u0027five\u0027, \u00276\u0027:\u0027six\u0027, \u00277\u0027:\u0027seven\u0027, \u00278\u0027:\u0027eight\u0027, \u00279\u0027:\u0027nine\u0027, \u002710\u0027:\u0027ten\u0027}","TestCases":[{"Name":"Int switch","Code":"res=[]\r\nfor(let i = 0; i\u003C=10; i\u002B\u002B){\r\n switch(intKey[i]){\r\n case 0:\r\n res.push(intObj[0])\r\n break\r\n case 1:\r\n res.push(intObj[1])\r\n break\r\n case 2:\r\n res.push(intObj[2])\r\n break\r\n case 3:\r\n res.push(intObj[3])\r\n break\r\n case 4:\r\n res.push(intObj[4])\r\n break\r\n case 5:\r\n res.push(intObj[5])\r\n break\r\n case 6:\r\n res.push(intObj[6])\r\n break\r\n case 7:\r\n res.push(intObj[7])\r\n break\r\n case 8:\r\n res.push(intObj[8])\r\n break\r\n case 9:\r\n res.push(intObj[9])\r\n break\r\n case 10:\r\n res.push(intObj[10])\r\n break\r\n }\r\n}","IsDeferred":false},{"Name":"str switch","Code":"res=[]\r\nfor(let i = 0; i\u003C=10; i\u002B\u002B){\r\n switch(strKey[i]){\r\n case \u00270\u0027:\r\n res.push(strObj[\u00270\u0027])\r\n break\r\n case \u00271\u0027:\r\n res.push(strObj[\u00271\u0027])\r\n break\r\n case \u00272\u0027:\r\n res.push(strObj[\u00272\u0027])\r\n break\r\n case \u00273\u0027:\r\n res.push(strObj[\u00273\u0027])\r\n break\r\n case \u00274\u0027:\r\n res.push(strObj[\u00274\u0027])\r\n break\r\n case \u00275\u0027:\r\n res.push(strObj[\u00275\u0027])\r\n break\r\n case \u00276\u0027:\r\n res.push(strObj[\u00276\u0027])\r\n break\r\n case \u00277\u0027:\r\n res.push(strObj[\u00277\u0027])\r\n break\r\n case \u00278\u0027:\r\n res.push(strObj[\u00278\u0027])\r\n break\r\n case \u00279\u0027:\r\n res.push(strObj[\u00279\u0027])\r\n break\r\n case \u002710\u0027:\r\n res.push(strObj[\u002710\u0027])\r\n break\r\n }\r\n}","IsDeferred":false},{"Name":"int if-else ","Code":"res=[]\r\nfor(let i = 0; i\u003C=10; i\u002B\u002B){\r\n if(intKey[i]==0){\r\n res.push(intObj[0])\r\n }else if(intKey[i]==1){\r\n res.push(intObj[1])\r\n }else if(intKey[i]==2){\r\n res.push(intObj[2])\r\n }else if(intKey[i]==3){\r\n res.push(intObj[3])\r\n }else if(intKey[i]==4){\r\n res.push(intObj[4])\r\n }else if(intKey[i]==5){\r\n res.push(intObj[5])\r\n }else if(intKey[i]==6){\r\n res.push(intObj[6])\r\n }else if(intKey[i]==7){\r\n res.push(intObj[7])\r\n }else if(intKey[i]==8){\r\n res.push(intObj[8])\r\n }else if(intKey[i]==9){\r\n res.push(intObj[9])\r\n }else if(intKey[i]==10){\r\n res.push(intObj[10])\r\n }\r\n}","IsDeferred":false},{"Name":"str if-else ","Code":"res=[]\r\nfor(let i = 0; i\u003C=10; i\u002B\u002B){\r\n if(strKey[i]==0){\r\n res.push(strObj[0])\r\n }else if(strKey[i]==1){\r\n res.push(strObj[1])\r\n }else if(strKey[i]==2){\r\n res.push(strObj[2])\r\n }else if(strKey[i]==3){\r\n res.push(strObj[3])\r\n }else if(strKey[i]==4){\r\n res.push(strObj[4])\r\n }else if(strKey[i]==5){\r\n res.push(strObj[5])\r\n }else if(strKey[i]==6){\r\n res.push(strObj[6])\r\n }else if(strKey[i]==7){\r\n res.push(strObj[7])\r\n }else if(strKey[i]==8){\r\n res.push(strObj[8])\r\n }else if(strKey[i]==9){\r\n res.push(strObj[9])\r\n }else if(strKey[i]==10){\r\n res.push(strObj[10])\r\n }\r\n}","IsDeferred":false},{"Name":"int object-key","Code":"res=[]\r\nfor(let i = 0; i\u003C=10; i\u002B\u002B){\r\n res.push(intObj[intKey[i]])\r\n}","IsDeferred":false},{"Name":"str object-key","Code":"res=[]\r\nfor(let i = 0; i\u003C=10; i\u002B\u002B){\r\n res.push(strObj[strKey[i]])\r\n}","IsDeferred":false}]}