{"ScriptPreparationCode":"var list = [1, 0, -2, -1, 3, 0, 1, 8, -10, 3, 0, -1, -3];","TestCases":[{"Name":"Number 1: use for iterator","Code":"let countNumberGreaterThanZero = 0;\r\nconst listLength = list.length;\r\n\r\nfor (let i = 0; i \u003C listLength; i\u002B\u002B) {\r\n if (list[i] \u003E 0) {\r\n countNumberGreaterThanZero\u002B\u002B;\r\n }\r\n}","IsDeferred":false},{"Name":"Number 2: using reduce method","Code":"let countsNumbersGreaterThanZero = (acc, cur) =\u003E acc \u002B (cur \u003E 0 ? 1 : 0);\r\n\r\nlist.reduce(countsNumbersGreaterThanZero, 0)","IsDeferred":false}]}