Hypercube Graph | function to find power of 2 ; driver program n is the order of the graph
function power ( n ) { if ( n == 1 ) return 2 ; return 2 * power ( n - 1 ) ; } var n = 4 ; document . write ( power ( n ) ) ;