Math.LN2 Property in JavaScript



The LN2 property of the Math object represents the logarithmic value of 2.

Syntax

Its Syntax is as follows

Math.LN2

Example

 Live Demo

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

Output

0.6931471805599453
Samual Sam
Samual Sam

Learning faster. Every day.


Advertisements