Find count of negative numbers , count of zeros , maximum valued negative number , minimum valued positive number and product of non - zero numbers
let negmax = Number . MIN_VALUE ; let posmin = Number . MIN_VALUE ; let count_neg = 0 , count_zero = 0 ; let product = 1 ; for ( let i = 0 ; i < n ; i ++ ) {