How to use Math LOG10E Property in JavaScript
In this article, I will explain use of Math LOG10E Property in JavaScript.
JavaScript LOG10E Property
- LOG10E property of math object returns the base-10 logarithm of E which approximately 0.434.
Syntax
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
Output2
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