Find n | Function to solve the quadratic equation ; Calculating the Nth term ; Driver code
function term ( n ) { let x = parseInt ( ( ( 1 ) + Math . sqrt ( 1 + ( 8 * n ) ) ) / 2 ) ; return x ; } let n = 5 ; document . write ( term ( n ) ) ;