The PI
property returns the math PI which is the
ratio of a circle's area to the square of its radius, approximately 3.14
PI |
Yes | Yes | Yes | Yes | Yes |
Math.PI
A number representing PI.
The following code shows how to find out the value of PI.
console.log(Math.PI);
The code above generates the following result.