{"ScriptPreparationCode":"var arr = [\u0027dd\u0027, \u0027aa\u0027, \u0027dd\u0027, \u0027xx\u0027, \u0027dd\u0027, \u0027aa\u0027, \u0027as\u0027, \u0027ds\u0027, \u0027dd\u0027], farr;","TestCases":[{"Name":"Filter","Code":"farr = arr.filter(function(item) { \r\nreturn /dd/.test(item)\r\n}).length;","IsDeferred":false},{"Name":"For","Code":"let count = 0;\r\nfor (var i=0,len=arr.length;i\u003Clen;i\u002B\u002B) {\r\n if (/dd/.test(arr[i])) count\u002B\u002B;\r\n}","IsDeferred":false}]}