Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js get last 4 digits

const id = "ctl03_Tabs1";
console.log(id.slice(id.length - 5)); //Outputs: Tabs1
console.log(id.slice(id.length - 1)); //Outputs: 1
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #digits
ADD COMMENT
Topic
Name
8+3 =