• JavaScript Video Tutorials

JavaScript - Math LOG2E Property



Description

This returns base 2 logarithm of E which is approximately 1.442.

Syntax

Math.LOG2E

Example

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

This will produce following result −

Property Value is : 1.4426950408889633 
javascript_math_object.htm
Advertisements