How to get base 10 logarithms of E in JavaScript?


To get base 10 logarithms of E, use the Math LOG10E property. It returns base 10 logarithm of E which is approximately 0.434.

Example

You can try to run the following code to get base 10 logarithms of E in JavaScript −

<html>
   <head>
      <title>JavaScript Math LOG10E Property</title>
   </head>
   <body>
      <script>
         var property_value = Math.LOG10E
         document.write("Property Value: " + property_value);
      </script>
   </body>
</html>

Updated on: 19-Jun-2020

67 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements