Sum of fourth powers of the first n natural numbers | Return the sum of forth power of first n natural numbers ; Driven Program
function fourthPowerSum ( n ) { let sum = 0 ; for ( let i = 1 ; i <= n ; i ++ ) sum = sum + ( i * i * i * i ) ; return sum ; } let n = 6 ; document . write ( fourthPowerSum ( n ) ) ;