Math.LOG2E Property in JavaScript

HTMLJavascriptWeb DevelopmentFront End Technology

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

Syntax

Its Syntax is as follows

Math.LOG2E

Example

 Live Demo

<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
raja
Published on 29-Oct-2018 07:10:32
Advertisements