JSFiddle - React, Tailwind, and code Playground

by akhildev

JavaScript

let a = 1;
let b= isNaN(a)?a:"string";

alert(b);