Javascript - Math PI Property

The PI property returns the ratio of a circle's area to the square of its radius, approximately 3.141592

Description

The PI property returns the ratio of a circle's area to the square of its radius, approximately 3.141592

Syntax

Math.PI

Return

A Number, representing PI

Demo

//display PI.
console.log(Math.PI);

Result