Below is the example of the Math LOG2E Property.
- 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 mathematics it needed a lot.
- Google Chrome 1 and above
- Internet Explorer 3 and above
- Edge 12 and above
- Firefox 1 and above
- Opera 3 and above
- Safari 1 and above