function multiply(array) { // write code here if( array.length == 0 ){ return false; } var result = []; for( var i = 0;i<array.length;i++ ){ result[i] = 1; for( var j = 0;j<array.length;j++ ){ if( j != i ){ result[i] = result[i] * array[j]; } } } return result; /* var mul = 1; for( var i = 0;i<array.length;i++ ){ mul = mul*array[i]; } */ }