From cfac24d450b05379594eba4a927ea1ad63df0c13 Mon Sep 17 00:00:00 2001 From: mrshappy0 Date: Tue, 22 Sep 2020 20:40:55 -0600 Subject: [PATCH] random change back to --- js-solutions/Bit-counting.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js-solutions/Bit-counting.js b/js-solutions/Bit-counting.js index 3eba3ad..8c00690 100644 --- a/js-solutions/Bit-counting.js +++ b/js-solutions/Bit-counting.js @@ -1 +1 @@ -var countBits = (n) => (n.toString(2).match(/[1]/g) || "").; +var countBits = (n) => (n.toString(2).match(/[1]/g) || "").length;