get the part of a string javascirpt code example
Example 1: javascript delete first character in string
var oldStr ="Hello";
var newStr = oldStr.substring(1); //remove first character "ello"
Example 2: javascript substring
// zero-based index, 'end' is excluded from result
myString.substring( start, end )