Computer >> Computer tutorials >  >> Programming >> Javascript

Math.LOG2E Property in JavaScript


The LOG2E property of the Math object represents the logarithmic value of base 2.

Syntax

Its Syntax is as follows

Math.LOG2E

Example

<html>
<head>
   <title>JavaScript Example</title>
</head>
<body>
   <script type="text/javascript">
      var result = Math.LOG2E;
      document.write(result);
   </script>
</body>
</html>

Output

1.4426950408889634