Program to print the sum of the given nth term | function to calculate sum of series ; Sum of n terms is n ^ 2 ; Driver Code
function summingSeries ( n ) { return Math . pow ( n , 2 ) ; } let n = 100 ; document . write ( " " + summingSeries ( n ) + " " ) ;