JSFiddle - React, Tailwind, and code Playground JavaScript for(var i = 1; i <= 999; i++) { console.log(("00" + i).slice(-3)); }