Find area of the larger circle when radius of the smaller circle and difference in the area is given | Javascript implementation of the approach ; Function to return the area of the bigger circle ; Find the radius of the bigger circle ; Calculate the area of the bigger circle ; Driver code
let PI = 3.14 ; function find_area ( r , d ) { let R = d / PI ; R += Math . pow ( r , 2 ) ; R = Math . sqrt ( R ) ; let area = PI * Math . pow ( R , 2 ) ; return area ; } let r = 4 , d = 5 ; document . write ( find_area ( r , d ) . toFixed ( 2 ) ) ;