I had a small request to display all the true/false combinations.
The only catch was that 2 vars cannot be true,true or false,false . So .. var totalCombinatinations=0;
for (let i = 0; i < 1 << 5; i++) {
if (!(!!(i & (1<<3))==!!(i & (1<<2))) ) {
console.log([!!(i & (1<<4)),!!(i…