Find the height of a right | Function to return the height of the right - angled triangle whose area is X times its base ; Driver code
function getHeight ( X ) { return ( 2 * X ) ; } var X = 35 ; document . write ( getHeight ( X ) ) ;