substring from 1 to end in javascript code example
Example: javascript substring
// zero-based index, 'end' is excluded from result
myString.substring( start, end )
// zero-based index, 'end' is excluded from result
myString.substring( start, end )