JSFiddle - React, Tailwind, and code Playground

JavaScript

var a = '';
var b = (a) ? true : false;
alert(b);