JSFiddle - React, Tailwind, and code Playground

JavaScript

function foo(){
    return (Math.random() * 0.5) > 0;
}
if (false !== (f = foo())){
    alert('True!');
}
alert('f=' + f.toString());