JSFiddle - React, Tailwind, and code Playground by akhildev August 09, 2019 JavaScript let a = 1; let b= isNaN(a)?a:"string"; alert(b);