Home »
JavaScript
Math.LN10 Property with Example in JavaScript
JavaScript | Math.LN10 Property: Here, we are going to learn about the LN10 property of Math class in JavaScript with Examples.
Submitted by Shivang Yadav, on February 03, 2020
JavaScript | Math.LN10 Property
Math.LN10 is a property in math library of JavaScript that is used to find the value of natural Log of 10. It is loge(10), the value is 2.302.
Syntax
Math.LN10
Parameters
Return Value
The return type of this method is number, it returns a number (float value), value of LN10.
Browser support
Chrome, Internet explorer, Mozilla, Safari, Opera mini.
Example 1
console.log(Math.LN10);
Output
2.302585092994046
Example 2: Invalid values
console.log(Math.LN10("Javascript"));
Output
Uncaught TypeError: Math.LN10 is not a function
at <anonymous>:1:18
JavaScript Math Object Methods »