Home >>JavaScript Math Reference >JavaScript LOG10E Property

JavaScript LOG10E Property

JavaScript LOG10E Property

JavaScript LOG10E property is used to return the base-10 logarithm of E. Its value is approximately 0.434.

Syntax:

Math.LOG10E

Browser Support

Property Chrome Edge Firefox Safari Opera
LOG10E Yes Yes Yes Yes Yes

Here is an example of JavaScript LOG10E property:

<html>
<body>
<p>Click the button to see the Output</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
  document.getElementById("demo").innerHTML = Math.LOG10E;
}
</script>
</body>
</html>
Output:

Click the button to see the Output.

 


Popular Tutorials