JSFiddle - React, Tailwind, and code Playground

by welkineins

JavaScript

var str = 'hello';
var obj = {};

alert(str || obj);
alert(str && obj);