JSFiddle - React, Tailwind, and code Playground
by Siva Charan
JavaScript
var s = "0000001234000089";
if (/^[0-9]{1,10}$/.test(+s) && s.length<=10)
alert('we cool');
else
alert('we not');
by Siva Charan
var s = "0000001234000089";
if (/^[0-9]{1,10}$/.test(+s) && s.length<=10)
alert('we cool');
else
alert('we not');