JavaScript Math LN2 Property Last Updated : 12 Jul, 2024 Comments Improve Suggest changes Like Article Like Report The Math.LN2 is a property in JavaScript that is simply used to find the value of a natural log of 2. The natural log is of base e which is represented as ln. So, the natural log of 2 is represented as ln(2) whose value is approximately 0.693.Syntax:Math.LN2; Parameters: This method does not accept any parameter.Return Values: It simply returns the Value of the natural log of 2.Below is an example of the Math LN2() Method. Example 1: javascript // Here value of Math.LN2 is printed. console.log(Math.LN2); Output: 0.6931471805599453 Example 2: The value of the natural log of 2 can be printed in the form of a function as shown below. javascript // function is being called. function get_Value_of_natural_log_of_2() { return Math.LN2; } // Calling Function. console.log(get_Value_of_natural_log_of_2()); Output: 0.6931471805599453 Example 3: Here we consider Math.LN2 is a function but in actuality, it is a property which is why the error as output is being shown. javascript // Here we consider Math.LN2 as a // function but in actual it // is a property that is why error as // output is being shown. console.log(Math.LN2(12)); Output: Error: Math.LN2 is not a function Note: Check the console for errors.We have a complete list of Javascript Math Objects methods, to check those please go through this Javascript Math Object Complete reference article.Supported Browsers: Google Chrome 1 and aboveEdge 12 and aboveFirefox 1 and aboveOpera 3 and aboveSafari 1 and above Comment More info K Kanchan_Ray Follow Improve Article Tags : Misc JavaScript Web Technologies javascript-math JavaScript-Methods +1 More Explore JavaScript BasicsIntroduction to JavaScript4 min readVariables and Datatypes in JavaScript6 min readJavaScript Operators5 min readControl Statements in JavaScript4 min readArray & StringJavaScript Arrays7 min readJavaScript Array Methods7 min readJavaScript Strings6 min readJavaScript String Methods9 min readFunction & ObjectFunctions in JavaScript5 min readJavaScript Function Expression3 min readFunction Overloading in JavaScript4 min readObjects in Javascript4 min readJavaScript Object Constructors4 min readOOPObject Oriented Programming in JavaScript3 min readClasses and Objects in JavaScript4 min readWhat Are Access Modifiers In JavaScript ?5 min readJavaScript Constructor Method7 min readAsynchronous JavaScriptAsynchronous JavaScript2 min readJavaScript Callbacks4 min readJavaScript Promise4 min readEvent Loop in JavaScript4 min readAsync and Await in JavaScript2 min readException HandlingJavascript Error and Exceptional Handling6 min readJavaScript Errors Throw and Try to Catch2 min readHow to create custom errors in JavaScript ?2 min readJavaScript TypeError - Invalid Array.prototype.sort argument1 min readDOMHTML DOM (Document Object Model)9 min readHow to select DOM Elements in JavaScript ?3 min readJavaScript Custom Events4 min readJavaScript addEventListener() with Examples9 min readAdvanced TopicsClosure in JavaScript4 min readJavaScript Hoisting6 min readJavascript Scope3 min readJavaScript Higher Order Functions7 min readDebugging in JavaScript4 min read Like