![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to 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