Static Properties

Math.E

Euler's constant and the base of natural logarithms, approximately 2.718.

Math.LN2

Natural logarithm of 2, approximately 0.693.

Math.LN10

Natural logarithm of 10, approximately 2.303.

Math.LOG2E

Base 2 logarithm of E, approximately 1.443.

Math.LOG10E

Base 10 logarithm of E, approximately 0.434.

Math.PI

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

Math.SQRT1_2

Square root of 1/2; equivalently, 1 over the square root of 2, approximately 0.707.

Math.SQRT2

Square root of 2, approximately 1.414.


RESETRUNFULL
<!DOCTYPE html><html><body><script>


   function Area(r){
      return Math.PI*r**2;
   }
   console.log(Area(5).toFixed());  // 79

</script></body><html>