JSFiddle - React, Tailwind, and code Playground

JavaScript

alert("08".replace(/^0+/, ''));
alert("80".replace(/^0+/, ''));