Driver program
let arr = [ 10 , 20 , 9 , 40 ] ; let x = 400 ; let n = arr . length ; if ( isProduct ( arr , arr . length , x ) ) document . write ( " " + " " ) ; else document . write ( " " + " " ) ; x = 190 ; if ( isProduct ( arr , arr . length , x ) ) document . write ( " " + " " ) ; else document . write ( " " + " " ) ;