JavaScript - Math LN2 Property
Advertisements
Description
It returns the natural logarithm of 2 which is approximately 0.693.
Syntax
Its syntax is as follows −
Math.LN2
Example
Try the following example program.
Live Demo<html> <head> <title>JavaScript Math LN2 Property</title> </head> <body> <script type = "text/javascript"> var property_value = Math.LN2 document.write("Property Value is : " + property_value); </script> </body> </html>
Output
Property Value is : 0.6931471805599453
javascript_math_object.htm
Advertisements