javascript direct way 98ms
\nconst evenOddBit = (n) => {\n   let s = n.toString(2), res = [0, 0];\n   for (let i = s.length - 1, cur = 0; ~i; i--, cur ^= 1) {\n       if (s[i] == \'1\') {
```\nconst evenOddBit = (n) => {\n   let s = n.toString(2), res = [0, 0];\n   for (let i = s.length - 1, cur = 0; ~i; i--, cur ^= 1) {\n       if (s[i] == \'1\') {\n           cur ? res[1]++ : res[0]++;\n       }\n   }\n   return res;\n};\n```
['String', 'JavaScript']