Initialize the product with - 1
let product = - 1 ; let si = factors . length ; for ( let i = 0 ; i < si ; i ++ ) { for ( let j = 0 ; j < si ; j ++ ) { for ( let k = 0 ; k < si ; k ++ ) { for ( let l = 0 ; l < si ; l ++ ) {