Why to multiply ? Neat and Simple solution O(N) - 72 ms
\nvar arraySign = function(nums) {\n    var ans = 1\n    for(i of nums){\n        if(i == 0){\n            return 0\n        }\n        if(i < 0){\n            
```\nvar arraySign = function(nums) {\n    var ans = 1\n    for(i of nums){\n        if(i == 0){\n            return 0\n        }\n        if(i < 0){\n            ans = -ans\n        }\n    }\n    return ans\n};\n```
['JavaScript']