Sum of square of first n even numbers | JavaScript program to find sum of square of first n even numbers . ; Driver code
function squareSum ( n ) { let sum = 0 ; for ( let i = 1 ; i <= n ; i ++ ) sum += ( 2 * i ) * ( 2 * i ) ; return sum ; } document . write ( squareSum ( 8 ) ) ;