Below is the example of the Math LOG2E Property.
// Here value of Math.LOG2E is printed.
Return Values: It simply return the value of base 2 logarithm of e.
- Example: Here simply value of base 2 logarithm of e is shown as output.
Input : Math.LOG2E Output:1.4426950408889634
More codes for the above property are as follows:
Program 1: Value of base 2 logarithm of e can be printed as in the form of function as shown below.
Program 2: Here we consider Math.LOG2E as a function but in actual it is a property that is why error as output is being shown.
Error: Math.LOG2E is not a function
Program 3: Whenever we need to find the value of base 2 logarithm of e that time we take the help of this property.In mathemaatics it needed a lot.
- Google Chrome
- Internet Explorer