Closed RazvanBugoi closed 2 years ago
https://www.codewars.com/kata/526571aae218b8ee490006f4/train/javascript
const countBits = function(n) { const binary = n.toString(2) const arrOfOnes = binary.split("").filter( (element) => element == "1") return arrOfOnes.length };
https://www.codewars.com/kata/526571aae218b8ee490006f4/train/javascript