PIbeginner// Pi β ratio of circumference to diameter
Math.PI // β 3.1415926535...
2 * Math.PI // β 6.2831... (full circle in radians)Use Math.PI when calculating circle circumferences, areas, or converting between degrees and radians.
The area of a circle is ΟrΒ². For a unit circle (r=1), area = Ο β 3.14159.
Challenge: Use Math.PI to compute circle areas.