javascript get last n characters of string
const id = "ctl03_Tabs1";
console.log(id.slice(id.length - 5)); //Outputs: Tabs1
console.log(id.slice(id.length - 1)); //Outputs: 1'abc'.slice(-1); // c
Also in JavaScript:
- array differenc javascript
- int cating javascript
- post express node js input
- icon api node js to browser
- chrome add bookmark that prefixes text
- angular vs react
- change src of iframe jquery
- adding growl delete notifications in vanilla js
- function click anywhere javascript
- how to disable time option in select jquery
- angular for loop
- js find intersection point
- how to remove session data on tab close in redux\
- how to name a javascript variable
- what is node js
- js replace all number
- javascript get elements in both arrays
- dm message collector discordjs
- in angular click button button hide div and show div
- ckeditor ignore contenteditable
- trim text and add ... js
- react can't import file 3 folders up
- angularjs switch
- remover o primeiro caracter de uma string javascript