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

 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
karthikeya Boyini
karthikeya Boyini

I love programming (: That's all I know


Advertisements