Find the nth term of the given series | Function to return the nth term of the given series ; Driver code
function oddTriangularNumber ( N ) { return ( N * ( ( 2 * N ) - 1 ) ) ; } let N = 3 ; document . write ( oddTriangularNumber ( N ) ) ;