JSFiddle - React, Tailwind, and code Playground
JavaScript
var a = new Date();
var b = null;
var c = {
test: "test"
};
if (a) console.log(a); //--- prints the current date
if (b) console.log('null'); //--- never reached
if (c) console.log('test'); //--- prints 'test'
console.log(a && b); //--- prints null
console.log(typeof null); //--- prints "object"
console.log(typeof c); //--- prints "object"