JavaScript Math.clz32()
JavaScript Math.clz32()
The Math.clz32() method is used to return the number of leading zeros in a 32-bit binary representation of a number.
Syntax:-
Its syntax is:- Math.clz32(x)
Return:-
Its return is:- number of leading zeros bits in the 32-bit binary representation of the number
Further Explanation:-
Parameter | Description |
---|---|
x | Required. A number. |