Sum of square | Function to find sum of sum of square of first n natural number ; Driven Program
function findSum ( n ) { return ( n * ( n + 1 ) * ( n + 1 ) * ( n + 2 ) ) / 12 ; } let n = 3 ; document . write ( findSum ( n ) + " " ) ;