ES6 - Math-PI Property



Ratio of the circumference of a circle to its diameter, approximately 3.14159.

Syntax

Math.PI 

Example

console.log(Math.PI)  
// the ratio of a circle's circumference to its diameter: ~3.142           

Output

3.141592653589793            
Advertisements