Sum of square of first n odd numbers | JavaScript program to find sum of square of first n odd numbers . ; Driver code
function squareSum ( n ) { return n * ( 4 * n * n - 1 ) / 3 ; } document . write ( squareSum ( 8 ) ) ;