Program for Area Of Square after N | Function to calculate area of square after given number of folds ; Driver Code
function areaSquare ( side , fold ) { var area = side * side ; return ( area * 1.0 ) / ( Math . pow ( 2 , fold ) ) ; } var side = 4 , fold = 2 ; document . write ( areaSquare ( side , fold ) ) ;