JSFiddle - React, Tailwind, and code Playground by Hugo Carneiro February 08, 2019 JavaScript var num = '1'; alert( !isNaN(parseInt(num, 10)) );