This repo is just for leetcode.
String.fromCharCode('a'.charCodeAt() | ' '.charCodeAt()) === 'a'
String.fromCharCode('A'.charCodeAt() | ' '.charCodeAt()) === 'a'
String.fromCharCode('A'.charCodeAt() & '_'.charCodeAt()) === 'A'
String.fromCharCode('a'.charCodeAt() & '_'.charCodeAt()) === 'A'
String.fromCharCode('A'.charCodeAt() ^ ' '.charCodeAt()) === 'a'
String.fromCharCode('a'.charCodeAt() ^ ' '.charCodeAt()) === 'A'
-1 ^ 2 = -3
n & (n - 1)
function isPowerOf2(num){
if (num < 0) return false
return (num & (num - 1)) === 0
}