Find the sum of series 3 , | calculate sum upto N term of series ; Driver code
function Sum_upto_nth_Term ( n ) { return ( 1 - parseInt ( Math . pow ( - 2 , n ) ) ) ; } let N = 5 ; document . write ( Sum_upto_nth_Term ( N ) ) ;