JSFiddle - React, Tailwind, and code Playground by kkdaily June 07, 2018 JavaScript const str = '3'; if (str.length) { alert('string has length'); }