JSFiddle - React, Tailwind, and code Playground

JavaScript

status = true;
if(!status){ alert('Wert ist false'); }
status = '';
if(!status){ alert('Erst jetzt ist der Wert false');  }