JSFiddle - React, Tailwind, and code Playground

JavaScript

var num = 747832;
alert(("" + num).substring(0,2));