Math.log2()
Term side of the Card
Topic: Math
Unit title: Math.log2()
Categories: Method
Explanation side of the Card
Explanation: The static method that returns the base-2 logarithm of a given number. For example, `Math.log2(8)` returns 3, as 2 to the power of 3 is 8.
Browser compatibility:
- The chrome browser supports this feature starting from version 38
- The edge browser supports this feature starting from version 12
- The firefox browser supports this feature starting from version 25
- The safari browser supports this feature starting from version 8
Availability: