Horje
js get last 4 digits Code Example
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
javascript get last n characters of string
'abc'.slice(-1); // c
how to get last string in javascript
'abc'.slice(-2);




Javascript

Related
react native spinner Code Example react native spinner Code Example
react-native loading spinner Code Example react-native loading spinner Code Example
chartjs start at 0 Code Example chartjs start at 0 Code Example
jquery get id value Code Example jquery get id value Code Example
difference between e.preventdefault and e.stoppropagation and return false Code Example difference between e.preventdefault and e.stoppropagation and return false Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8