Math LOG10E Property - Javascript Math

Javascript examples for Math:LOG10E

Description

The LOG10E property returns the base-10 logarithm of E, approximately 0.434.

Return Value:

A Number, representing the base-10 logarithm of E

The following code shows how to return the base-10 logarithm of E:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<button onclick="myFunction()">Test</button>

<p id="demo"></p>

<script>
function myFunction() {//from   ww  w  . j  a  v  a  2 s .  c  o m
    document.getElementById("demo").innerHTML = Math.LOG10E;
}
</script>

</body>
</html>

Related Tutorials