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 circumference of a circle is 2Οr. For a unit circle (r=1), circumference = 2Ο β 6.283.
Challenge: Use Math.PI to compute circle circumferences.