how to check the last sysomble of a string in javascript code example
Example 1: lastindexof js
string.lastIndexOf("subString")
Example 2: cut string from string javascript
var ret = "data-123".replace('data-','');
console.log(ret); //prints: 123