Sum of all the numbers present at given level in Pascal 's triangle | Function to find sum of numbers at Lth level in Pascals Triangle ; Driver Code
function sum ( h ) { return Math . pow ( 2 , h - 1 ) ; } var L = 3 ; document . write ( sum ( L ) ) ;