JSFiddle - React, Tailwind, and code Playground

by shapeshifta

JavaScript

var openedText,
    openedText2 = 'test';

console.log(openedText && openedText.length);
console.log(openedText2 && openedText2.length);