Second heptagonal numbers | Function to find N - th term in the series ; Driver code ; Function call
function findNthTerm ( n ) { document . write ( parseInt ( ( n * ( 5 * n + 3 ) ) / 2 ) ) ; } let N = 4 ; findNthTerm ( N ) ;