JSFiddle - React, Tailwind, and code Playground

JavaScript

var str = "cat123";
alert(str.substr(3));