Javascript examples for Math:LOG10E
The LOG10E property returns the base-10 logarithm of E, approximately 0.434.
A Number, representing the base-10 logarithm of E
The following code shows how to return the base-10 logarithm of E:
<!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>