console.log("AND: 6 & 2")
console.log("Thinking: 0110 & 0010 --> 0010")
console.log("Should print 2")
console.log("Test:")
console.log(6 & 2)
console.log()
console.log("OR: 3 | 8")
console.log("Thinking: 0011 | 1000 --> 1011")
console.log("Should print 11")
console.log("Test:")
console.log(3 | 8)
console.log()
console.log("XOR: 9 ^ 3")
console.log("Thinking: 1001 ^ 0011 --> 1010")
console.log("Should print 10")
console.log("Test:")
console.log(9 ^ 3)
console.log()
console.log("NOT: ! 0")
console.log("Thinking: false is 0 in binary, so ! 0 is not false which is true")
console.log("Should print true")
console.log("Test:")
console.log(! 0)
AND: 6 & 2
Thinking: 0110 & 0010 --> 0010
Should print 2
Test:
2

OR: 3 | 8
Thinking: 0011 | 1000 --> 1011
Should print 11
Test:
11

XOR: 9 ^ 3
Thinking: 1001 ^ 0011 --> 1010
Should print 10
Test:
10

NOT: ! 0
Thinking: false is 0 in binary, so ! 0 is not false which is true
Should print true
Test:
true