JavaScript Tutorial JavaScript References

JavaScript - Math.LOG10E Property



The JavaScript Math.LOG10E property is the base-10 logarithm of e. It is approximately 0.434.

Syntax

Math.LOG10E

Example:

The example below shows the usage of Math.LOG10E property.

var txt;

txt = "Math.LOG10E = " + Math.LOG10E + "<br>";
txt = txt + "Math.pow(10, Math.LOG10E) = " + Math.pow(10, Math.LOG10E) + "<br>";
txt = txt + "Math.exp(1/Math.LOG10E) = " + Math.exp(1/Math.LOG10E) + "<br>";

The output (value of txt) after running above script will be:

Math.LOG10E = 0.4342944819032518
Math.pow(10, Math.LOG10E) = 2.718281828459045
Math.exp(1/Math.LOG10E) = 10.000000000000002

❮ JavaScript - Math Object