JSFiddle - React, Tailwind, and code Playground by Hugo Carneiro October 15, 2018 JavaScript var val = "asd"; console.log(/^\d+$/.test(val));