how to substring in javascript from a specific character code example
Example 1: cut string from string javascript
var ret = "data-123".replace('data-','');
console.log(ret); //prints: 123
Example 2: straforma in string js
var x = new String("Una nuova stringa");