Program to find sum of first n natural numbers | Return the average of sum of first n even numbers ; Driver code
function findSum ( n ) { return n * ( n + 1 ) / 2 ; } var n = 5 ; document . write ( findSum ( n ) ) ;