{"ScriptPreparationCode":"var arr = [];\r\nvar i = 0;\r\n\r\nwhile (i \u003C= 1E5) arr[i] = i\u002B\u002B;","TestCases":[{"Name":"Array.prototype.findIndex","Code":"const index = arr.findIndex(item =\u003E item === 1E5);","IsDeferred":false},{"Name":"For loop","Code":"var index = -1\r\nfor(var i = 0; i \u003C arr.length; i\u002B\u002B) {\r\n if(arr[i] === 1E5) {\r\n index = i;\r\n break;\r\n }\r\n}","IsDeferred":false},{"Name":"While loop","Code":"let index = -1;\r\nlet i = 0\r\n const len = arr.length;\r\n while (\u002B\u002Bi \u003C len) {\r\n if (arr[i] === 1E5) {\r\n index = i\r\n break;\r\n }\r\n }\r\n","IsDeferred":false}]}