From 0d5ccc925d85465cfd0ea417fd2013b5d95ae045 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Fri, 29 May 2020 17:57:23 +0300 Subject: [PATCH] Update isPowerOfTwo.md --- snippets/isPowerOfTwo.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/isPowerOfTwo.md b/snippets/isPowerOfTwo.md index fae6b67b1..6ab545622 100644 --- a/snippets/isPowerOfTwo.md +++ b/snippets/isPowerOfTwo.md @@ -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