Update isPowerOfTwo.md

This commit is contained in:
Angelos Chalaris
2020-05-29 17:57:23 +03:00
committed by GitHub
parent ecef6ff378
commit 0d5ccc925d

View File

@ -5,7 +5,7 @@ tags: math,beginner
Returns `true` if the given number is a power of `2`, `false` otherwise.
Use the bitwise binary AND operator (`&`) to determine if `n` is a power of `2.
Use the bitwise binary AND operator (`&`) to determine if `n` is a power of `2`.
Additionally, check that `n` is not falsy.
```js