I’m on a codewars challenge, and I get the correct output but it won’t return as an array for some reason. The problem is to take an input array and add all positive numbers and all negative numbers and return an array as [sum of positive numbers, sum of negative numbers] but my ouput always comes out right but not in an array.

```
function countPositivesSumNegatives(input) {
var output = [0,0];
for (i = 0; i < input.length; i++)
{
if (input[i] < 0)
{
output[0] = output[0] + input[i];
}
else if (input[i] > 0)
{
output[1] = output[1] + input[i];
}
}
return output;
}
```