JSFiddle - React, Tailwind, and code Playground

by badfreja

JavaScript

const x = false & true || true; 
const y = false & true || false;
const z = true & true || false;

console.log('x', x, typeof(x)); // true, bool

console.log('y', y, typeof(y)); // false, bol

console.log('z', z, typeof(z)); // 1, num