Javascript - Math Math Properties

Introduction

The following table describes these properties.

PROPERTY DESCRIPTION
Math.E The value of e, the base of the natural logarithms
Math.LN10 The natural logarithm of 10
Math.LN2 The natural logarithm of 2
Math.LOG2E The base 2 logarithm of e
Math.LOG10EThe base 10 logarithm of e
Math.PI The value of p
Math.SQRT1_2The square root of ?
Math.SQRT2 The square root of 2

Demo

console.log(Math.E);
console.log(Math.LN10);/*from  w ww .j  a  v a2  s  .  com*/
console.log(Math.LN2);
console.log(Math.LOG2E);
console.log(Math.LOG10E);
console.log(Math.PI);
console.log(Math.SQRT1_2);
console.log(Math.SQRT2);

Result