How to use Math LOG10E Property in JavaScript

In this article, I will explain use of Math LOG10E Property in JavaScript.
  • 1963

JavaScript LOG10E Property

  • LOG10E property of math object returns the base-10 logarithm of E which approximately 0.434.

Syntax

Math.LOG10E

Example

The following example is show to use of LOG10E property in javascript.

<!DOCTYPE html>

<html>

<body>

<h3>LOG10 Property Example</h3>

<p id="demo" style="background-color:Red">Click the button to display the base-10 logarithm of E.</p>

<button onclick="myFunction()">Click on</button>

<script type="text/javascript">

    function myFunction() {

        document.getElementById("demo").innerHTML = Math.LOG10E;

    }

</script>

</body>

</html>

Output1

outpur 1.jpg

Output2

output 2.jpg

You may also want to read these related articles here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.