
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Get Base 2 Logarithm of E in JavaScript
To get base 2 logarithms of E, use the Math LOG2E property. It returns base 2 logarithm of E which is approximately 1.442.
Example
You can try to run the following code to get base 2 logarithms of E in JavaScript:
<html> <head> <title>JavaScript Math LOG2E Property</title> </head> <body> <script> var property_value = Math.LOG2E document.write("Property Value is : " + property_value); </script> </body> </html>
Advertisements