{"ScriptPreparationCode":"var blackList = [\u0022cazzo\u0022,\u0022madonna\u0022,\u0022stronzo\u0022,\u0022puttana\u0022,\u0022troia\u0022,\u0022porca\u0022,\u0022dio\u0022,\u0022porco\u0022,\u0022sticazzi\u0022]\r\nvar regexp = /^(cazzo|madonna|stronzo|puttana|troia|porca|dio|porco|sticazzi)$/\r\nvar array = [\u0022hi\u0022, \u0022hello\u0022]\r\n \r\n\r\nfor (var i = 0; i \u003C 1000; i\u002B\u002B) {\r\n\tarray[i] = makeid(8)\r\n\t}\r\n \r\n function makeid(length) {\r\n var result = \u0027\u0027;\r\n var characters = \u0027abcdefghijklmnopqrstuvwxyz\u0027;\r\n var charactersLength = characters.length;\r\n for ( var i = 0; i \u003C length; i\u002B\u002B ) {\r\n result \u002B= characters.charAt(Math.floor(Math.random() * \r\n charactersLength));\r\n }\r\n return result;\r\n}","TestCases":[{"Name":"array search","Code":"for (let i = 0; i \u003C array.length; i\u002B\u002B) {\r\n\tlet result = blackList.indexOf(array[i]) \u003E= -1;\r\n}","IsDeferred":false},{"Name":"regexp","Code":"for (let i = 0; i \u003C array.length; i\u002B\u002B) {\r\n\tlet result = array[i].match(regexp);\r\n}","IsDeferred":false}]}