Program to calculate the area of Kite | Javascript implementation of the approach ; Function to return the area of the kite ; convert angle degree to radians ; use above formula ; Driver code
var PI = 3.14159 / 180 function areaOfKite ( a , b , angle ) { angle = angle * PI ; var area = a * b * Math . sin ( angle ) ; return area . toFixed ( 4 ) ; } var a = 4 , b = 7 , angle = 78 ; document . write ( " " + areaOfKite ( a , b , angle ) ) ;