JSFiddle - React, Tailwind, and code Playground

JavaScript

var i = "1";
alert(typeof i);
i = parseInt(i);
alert(typeof i);