👋 Hello! I'm Alphonsio the robot. Ask me a question, I'll try to answer.

In JavaScript, how to get Pi?

In JavaScript, the Pi (π) constant is defined in the built-in property Math.PI. Here is an example :

// Display 3.141592653589793 in the console.
console.log (Math.PI);


More