Math.LN2 Property in JavaScript

HTMLJavascriptWeb DevelopmentFront End Technology

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
raja
Published on 29-Oct-2018 11:36:02
Advertisements