Sum of first n even numbers | function to find sum of first n even numbers ; required sum ; Driver Code
function evenSum ( n ) { return ( n * ( n + 1 ) ) ; } let n = 20 ; document . write ( " " + n + " " , evenSum ( n ) ) ;