alculate area of circle code example
Example: calculate area of circle
function calcAreaOfCircle(radius){
return Math.PI * r **2
}
function calcAreaOfCircle(diameter){
return Math.PI * (diameter / 2) **2
}
function calcAreaOfCircle(radius){
return Math.PI * r **2
}
function calcAreaOfCircle(diameter){
return Math.PI * (diameter / 2) **2
}