JSFiddle - React, Tailwind, and code Playground

by kkdaily

JavaScript

const str = '3';

if (str.length) {
	alert('string has length');
}