totn JavaScript

JavaScript: Math.LOG10E property

This JavaScript tutorial explains how to use the math property called Math.LOG10E with syntax and examples.

Description

In JavaScript, Math.LOG10E is a math property that is used to return the mathematical constant log10e which is the base-10 logarithm of the constant e. Because Math.LOG10E is a property of the Math object, it must be invoked through the placeholder object called Math.

Syntax

In JavaScript, the syntax for the Math.LOG10E property is:

Math.LOG10E;

Parameters or Arguments

There are no parameters or arguments for the Math.LOG10E property.

Returns

The Math.LOG10E property returns the mathematical constant log10e which has an approximate value of 0.4342944819032518.

Note

  • The Math.LOG10E property is a property of the Math object and not a math function. However, we have included the Math.LOG10E property within our JS Math Functions section because you will most likely use this property in conjunction with the Math functions found in this section.

Example

Let's take a look at an example of how to use the Math.LOG10E property in JavaScript.

For example:

console.log(Math.LOG10E);

In this example, we have invoked the Math.LOG10E property using the Math class.

We have written the output of the Math.LOG10E property to the web browser console log, for demonstration purposes, to show what the Math.LOG10E property returns.

The following will be output to the web browser console log:

0.4342944819032518

In this example, the Math.LOG10E property returned a value of 0.4342944819032518 which is the value of the mathematical constant log10e. This is the value of the base-10 logarithm of the constant e.