JSFiddle - React, Tailwind, and code Playground
JavaScript
var g = new Date("not gonna work");
if(g){
alert("g exists" + g);
alert(typeof(g));
}
var g = new Date("not gonna work");
if(g){
alert("g exists" + g);
alert(typeof(g));
}