JSFiddle - React, Tailwind, and code Playground
JavaScript
var str1 = "1";
var int1 = 1;
typeof(str1) == "string" ? alert("this is a string") : alert(typeof(str1));
typeof(int1) == "number" ? alert("this is a number") : typeof(int1);
//moduleInstanceID = ( typeof(moduleInstanceID))
if (typeof(int1) == "number") alert("this is a number for sho!!!");