clz32advanced// Count leading zero bits in a 32-bit integer
Math.clz32(1) // β 31
Math.clz32(4) // β 29Use Math.clz32() to count leading zero bits of a 32-bit integer, useful in low-level bitwise optimizations.
Math.clz32(1000) returns 22 because 1000 in binary requires 10 bits (1111101000).
Challenge: Verify the leading zero count for 1000.