12.
What will be the output of the following code?
function calculateCircleArea(radius) {
return Math.PI * radius * radius;
}
console.log(calculateCircleArea(3));
28.274333882308138
27
18
9
Correct: A
The calculateCircleArea function calculates the area of a circle by multiplying π (pi) with the square of the radius. In this case, when the radius is 3, the output will be approximately 28.274333882308138.