JavaScript provides 8 mathematical constants that can be accessed with the Math object:
Math.e // returns Euler's number (approx. 2.718)
Math.pi // returns PI (approx. 3.14)
Math.sqrt2 // returns the square root of 2 (approx. 1.414)
Math.sqrt1_2 // returns the square root of 1/2 (approx. 0.707)
Math.ln2 // returns the natural logarithm of 2 (approx. 0.693)
Math.ln10 // returns the natural logarithm of 10 (approx. 2.302)
Math.log2e // returns base 2 logarithm of E (approx. 1.442)
Math.log10e // returns base 10 logarithm of E (approx. 0.434)