// Radius of the circle
const radius = 5;
// Calculate the area of the circle using the formula A = π * r^2
const area = Math.PI * Math.pow(radius, 2);
// Display the calculated area
console.log('Area of the Circle:', area);
code
JavaScript Calculate Area of a Circle
Circle Area
Math.PI
Math.pow